@worldcoin/minikit-js 1.9.7 → 1.9.8
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.
|
@@ -1100,14 +1100,9 @@ var MiniKitProvider = ({
|
|
|
1100
1100
|
(0, import_react.useEffect)(() => {
|
|
1101
1101
|
const { success } = MiniKit.install(props?.appId);
|
|
1102
1102
|
if (!success) return setIsInstalled(false);
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
notifications: finalPayload.permissions.notifications,
|
|
1107
|
-
contacts: finalPayload.permissions.contacts
|
|
1108
|
-
};
|
|
1109
|
-
}
|
|
1110
|
-
});
|
|
1103
|
+
console.warn(
|
|
1104
|
+
"MiniKit permissions not fetched in provider. MiniKit.user.permissions will be inaccurate."
|
|
1105
|
+
);
|
|
1111
1106
|
setIsInstalled(success);
|
|
1112
1107
|
}, [props?.appId]);
|
|
1113
1108
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MiniKitContext.Provider, { value: { isInstalled }, children });
|
|
@@ -24,14 +24,9 @@ var MiniKitProvider = ({
|
|
|
24
24
|
useEffect(() => {
|
|
25
25
|
const { success } = MiniKit.install(props?.appId);
|
|
26
26
|
if (!success) return setIsInstalled(false);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
notifications: finalPayload.permissions.notifications,
|
|
31
|
-
contacts: finalPayload.permissions.contacts
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
});
|
|
27
|
+
console.warn(
|
|
28
|
+
"MiniKit permissions not fetched in provider. MiniKit.user.permissions will be inaccurate."
|
|
29
|
+
);
|
|
35
30
|
setIsInstalled(success);
|
|
36
31
|
}, [props?.appId]);
|
|
37
32
|
return /* @__PURE__ */ jsx(MiniKitContext.Provider, { value: { isInstalled }, children });
|