react-dynamic-help
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -71,3 +71,3 @@ "use strict"; | ||
} | ||
const __resetUserState = {}; | ||
const __resetUserState = JSON.stringify({}); | ||
const __resetState = { | ||
@@ -206,3 +206,3 @@ systemEnabled: true, | ||
(0, DynamicHelp_1.log)(this.props.debug, "Info: reloading user help state"); | ||
const stored = this.props.storage.getState(); | ||
const stored = this.props.storage.getState(__resetUserState); | ||
const newUserState = JSON.parse(stored); | ||
@@ -209,0 +209,0 @@ this.systemState.userState = newUserState; |
@@ -45,3 +45,3 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
} | ||
const __resetUserState = {}; | ||
const __resetUserState = JSON.stringify({}); | ||
const __resetState = { | ||
@@ -180,3 +180,3 @@ systemEnabled: true, | ||
log(this.props.debug, "Info: reloading user help state"); | ||
const stored = this.props.storage.getState(); | ||
const stored = this.props.storage.getState(__resetUserState); | ||
const newUserState = JSON.parse(stored); | ||
@@ -183,0 +183,0 @@ this.systemState.userState = newUserState; |
{ | ||
"name": "react-dynamic-help", | ||
"description": "React Dynamic Help - Create flows of helpful popups in your React App", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -10,3 +10,3 @@ # react-dynamic-help | ||
V 2.1.0 - As integrated with [online-go.com](https://online-go.com). | ||
V 2.1.1 - As integrated with [online-go.com](https://online-go.com). | ||
@@ -13,0 +13,0 @@ Demo at https://github.com/GreenAsJade/react-dynamic-help-demo |
116511