Skip to content

Commit 14fa26e

Browse files
committed
handle error when storage changed
1 parent 139eafb commit 14fa26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/channel/state/Progress.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Progress {
3333
public set = (value: CR.Progress) => {
3434
this.value = value
3535
if (!this.storage) {
36-
throw new Error('Tutorial storage not found')
36+
return defaultValue
3737
}
3838
this.storage.set(value)
3939
return this.value

0 commit comments

Comments
 (0)