From 286c528512e7777b2df91fb45c6a4e6c0d646296 Mon Sep 17 00:00:00 2001
From: Nuclear Squid <leo@cazenave.cc>
Date: Sat, 10 Aug 2024 11:53:58 +0200
Subject: [PATCH] Emmergency bug fix.

---
 code/layout-analyzer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/layout-analyzer.js b/code/layout-analyzer.js
index c84e4e42..3782a687 100644
--- a/code/layout-analyzer.js
+++ b/code/layout-analyzer.js
@@ -249,7 +249,7 @@ window.addEventListener('DOMContentLoaded', () => {
             if (pendingDeadKey)
               char = keyboard.layout.deadKeys[pendingDeadKey][char];
 
-            return char.length === 1
+            return char?.length === 1
                 ? [undefined, acc + char]
                 : [char, acc];
           }, [nextPendingDeadKey, '']);