From 5393a02bc1529804c3b39f0aaff763f79651d3a9 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 23 Feb 2024 16:01:01 -0800 Subject: [PATCH] fix: update selected mode on state change --- client/src/lib/Dashboard/TopBar/ModeSelector.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/lib/Dashboard/TopBar/ModeSelector.svelte b/client/src/lib/Dashboard/TopBar/ModeSelector.svelte index 58e78d7..38bb63e 100644 --- a/client/src/lib/Dashboard/TopBar/ModeSelector.svelte +++ b/client/src/lib/Dashboard/TopBar/ModeSelector.svelte @@ -10,7 +10,7 @@ let modeText = '' - switch (selectedMode) { + $: switch (selectedMode) { case 'chill': modeText = 'CHILL' break