diff --git a/frontend/src/lib/components/header/mobile.svelte b/frontend/src/lib/components/header/mobile.svelte index 62022b4..e0a2e76 100644 --- a/frontend/src/lib/components/header/mobile.svelte +++ b/frontend/src/lib/components/header/mobile.svelte @@ -57,7 +57,8 @@ function stretchText() { let container = document.getElementById("logo-container") let textElement = document.getElementById("upper") - + if (!textElement) return + if (!container) return let containerWidth = container.offsetWidth let textWidth = textElement.offsetWidth let currentLetterSpacing = parseFloat(