Skip to content

Feature/solution actions #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 29, 2019
Prev Previous commit
Next Next commit
handle error when storage changed
  • Loading branch information
ShMcK committed Sep 29, 2019
commit 14fa26ee90103771b4eda5ac313054303888906a
2 changes: 1 addition & 1 deletion src/channel/state/Progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Progress {
public set = (value: CR.Progress) => {
this.value = value
if (!this.storage) {
throw new Error('Tutorial storage not found')
return defaultValue
}
this.storage.set(value)
return this.value
Expand Down