Skip to content

Commit f6e0f95

Browse files
johnnysedh3lllosimolus3
authored andcommitted
(fix): pass dbName instead of key to setSyncEnabled in getSyncEnabled fallback
1 parent b1c43de commit f6e0f95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • demos/react-supabase-todolist-optional-sync/src/library/powersync

demos/react-supabase-todolist-optional-sync/src/library/powersync/SyncMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function getSyncEnabled(dbName: string) {
55
const value = localStorage.getItem(key);
66

77
if (!value) {
8-
setSyncEnabled(key, false);
8+
setSyncEnabled(dbName, false);
99
return false;
1010
}
1111

0 commit comments

Comments
 (0)