From cf442097300c42fb7d40dced3e51bfef351ec00a Mon Sep 17 00:00:00 2001 From: Danny Liu Date: Wed, 27 Mar 2024 16:19:02 -0700 Subject: [PATCH] refac: code style --- src/lib/components/chat/Settings/General.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index 95b93824b..65d358f8c 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -91,11 +91,7 @@ }); const applyTheme = (_theme: string) => { - let themeToApply = _theme; - - if (themeToApply.includes('oled')) { - themeToApply = 'dark'; - } + let themeToApply = _theme === 'oled-dark' ? 'dark' : _theme; if (_theme === 'system') { themeToApply = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';