From b0955122497effb9dc707e51829f1be79293dd87 Mon Sep 17 00:00:00 2001 From: MasterGordon Date: Sun, 27 Oct 2024 19:19:07 +0100 Subject: [PATCH] fixed settings toggles --- src/views/settings/Settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/settings/Settings.tsx b/src/views/settings/Settings.tsx index 9c475c3..5b8d1da 100644 --- a/src/views/settings/Settings.tsx +++ b/src/views/settings/Settings.tsx @@ -58,7 +58,7 @@ const Settings = () => { } value={settings?.longPressOnDesktop ?? false} onChange={async (value) => { - updateSettings.mutateAsync({ longPressOnDesktop: value }); + await updateSettings.mutateAsync({ longPressOnDesktop: value }); refetch(); }} /> @@ -67,7 +67,7 @@ const Settings = () => { description={<>Show an animation when a tile is revealed.} value={settings?.showRevealAnimation ?? true} onChange={async (value) => { - updateSettings.mutateAsync({ showRevealAnimation: value }); + await updateSettings.mutateAsync({ showRevealAnimation: value }); refetch(); }} />