From 93d0b8241ce39cd7b883d853929cb9da0735d6e2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 19 Nov 2025 04:44:40 -0500 Subject: [PATCH] refac --- src/lib/components/chat/Settings/Interface.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index d9c352838e..1f14dca99f 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -187,6 +187,10 @@ const setTextScaleHandler = (scale) => { textScale = scale; setTextScale(textScale); + + if (textScale === 1) { + textScale = null; + } saveSettings({ textScale }); }; @@ -342,7 +346,7 @@ } else { textScale = null; } - setTextScale(1); + setTextScaleHandler(1); }} > {#if textScale === null}