Skip to content

Commit c562c19

Browse files
code review suggestion
1 parent 19d7d26 commit c562c19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/useStorage/storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class StorageManager {
3737
try {
3838
return JSON.parse(value) as T
3939
} catch {
40+
console.error(`Unable to parse current value for key ${key}, returning default instead`)
4041
return defaultValue
4142
}
4243
}

0 commit comments

Comments
 (0)