about summary refs log tree commit diff
path: root/src/state/preferences/used-starter-packs.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/preferences/used-starter-packs.tsx')
-rw-r--r--src/state/preferences/used-starter-packs.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/state/preferences/used-starter-packs.tsx b/src/state/preferences/used-starter-packs.tsx
index 8d5d9e828..e4de479d5 100644
--- a/src/state/preferences/used-starter-packs.tsx
+++ b/src/state/preferences/used-starter-packs.tsx
@@ -19,9 +19,12 @@ export function Provider({children}: {children: React.ReactNode}) {
   }
 
   React.useEffect(() => {
-    return persisted.onUpdate(() => {
-      setState(persisted.get('hasCheckedForStarterPack'))
-    })
+    return persisted.onUpdate(
+      'hasCheckedForStarterPack',
+      nextHasCheckedForStarterPack => {
+        setState(nextHasCheckedForStarterPack)
+      },
+    )
   }, [])
 
   return (