@streamlayer/feature-gamification 0.26.1 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/onboarding.js +2 -1
- package/package.json +5 -5
package/lib/onboarding.js
CHANGED
|
@@ -21,7 +21,7 @@ export var OnboardingStatus;
|
|
|
21
21
|
})(OnboardingStatus || (OnboardingStatus = {}));
|
|
22
22
|
export const onboarding = (service, background, transport, notifications) => {
|
|
23
23
|
const storage = new GamificationStorage();
|
|
24
|
-
const $store = createSingleStore(OnboardingStatus.
|
|
24
|
+
const $store = createSingleStore(OnboardingStatus.Unset);
|
|
25
25
|
const showOnboardingInApp = () => {
|
|
26
26
|
const { inplayGame = {} } = service.featureSettings.get();
|
|
27
27
|
const notificationId = background.getCurrentSessionId({ prefix: 'onboarding' });
|
|
@@ -56,6 +56,7 @@ export const onboarding = (service, background, transport, notifications) => {
|
|
|
56
56
|
const onboardingProcess = async () => {
|
|
57
57
|
const userId = background.userId.get();
|
|
58
58
|
if (!userId) {
|
|
59
|
+
$store.set(OnboardingStatus.Unset);
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
62
|
const onboardingStatus = storage.getOnboardingStatus({
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/feature-gamification",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@bufbuild/protobuf": "^1.4.2",
|
|
6
6
|
"@streamlayer/sl-eslib": "^5.53.6",
|
|
7
7
|
"@fastify/deepmerge": "*",
|
|
8
8
|
"nanostores": "^0.9.5",
|
|
9
9
|
"@streamlayer/sdk-web-api": "^0.0.1",
|
|
10
|
-
"@streamlayer/sdk-web-core": "^0.
|
|
11
|
-
"@streamlayer/sdk-web-interfaces": "^0.
|
|
10
|
+
"@streamlayer/sdk-web-core": "^0.0.2",
|
|
11
|
+
"@streamlayer/sdk-web-interfaces": "^0.0.1",
|
|
12
12
|
"@streamlayer/sdk-web-logger": "^0.0.4",
|
|
13
|
-
"@streamlayer/sdk-web-notifications": "^0.13.
|
|
13
|
+
"@streamlayer/sdk-web-notifications": "^0.13.2",
|
|
14
14
|
"@streamlayer/sdk-web-storage": "^0.0.4",
|
|
15
|
-
"@streamlayer/sdk-web-types": "^0.
|
|
15
|
+
"@streamlayer/sdk-web-types": "^0.0.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tslib": "^2.6.2"
|