@matchain/matchid-sdk-react 0.1.44-alpha.0 → 0.1.44-alpha.2
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/dist/{chunk-KITTHHSR.mjs → chunk-7P4NHPH5.mjs} +4 -4
- package/dist/chunk-7P4NHPH5.mjs.map +1 -0
- package/dist/{chunk-L3G6YN2D.mjs → chunk-Z3USECNP.mjs} +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.css +1 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-KITTHHSR.mjs.map +0 -1
- /package/dist/{chunk-L3G6YN2D.mjs.map → chunk-Z3USECNP.mjs.map} +0 -0
package/dist/hooks/index.mjs
CHANGED
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -4747,7 +4747,7 @@ function HashPanel_default(props) {
|
|
|
4747
4747
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4748
4748
|
function BusinessProvider({ children }) {
|
|
4749
4749
|
const { overview, token, refreshOverview } = useUserInfo();
|
|
4750
|
-
const { recoveryModal } = useStore_default();
|
|
4750
|
+
const { recoveryModal, walletReady } = useStore_default();
|
|
4751
4751
|
const { wallet: walletConfig } = useLocalStore_default();
|
|
4752
4752
|
const { generateEmbeddedWallets, initCore } = useWallet();
|
|
4753
4753
|
const { type: SOLType, isOpen: SOLIsOpen, close: SOLClose } = useSOLModalStore();
|
|
@@ -4758,7 +4758,7 @@ function BusinessProvider({ children }) {
|
|
|
4758
4758
|
const WalletModalStore = useWalletModalStore();
|
|
4759
4759
|
const { close: HashPanelClose, ...hashPanelProps } = useHashPanelStore();
|
|
4760
4760
|
(0, import_react27.useEffect)(() => {
|
|
4761
|
-
if (token && overview && !overview.address && overview.did && walletConfig.type == "Base") {
|
|
4761
|
+
if (token && overview && !overview.address && overview.did && walletConfig.type == "Base" && walletReady) {
|
|
4762
4762
|
const onGenerate = async () => {
|
|
4763
4763
|
const did = overview ? overview.did.split(":")[2] : "";
|
|
4764
4764
|
await initCore({
|
|
@@ -4774,7 +4774,7 @@ function BusinessProvider({ children }) {
|
|
|
4774
4774
|
};
|
|
4775
4775
|
onGenerate();
|
|
4776
4776
|
}
|
|
4777
|
-
}, [token, overview, walletConfig]);
|
|
4777
|
+
}, [token, overview, walletConfig, walletReady]);
|
|
4778
4778
|
const walletModalClose = (func) => {
|
|
4779
4779
|
WalletModalStore.close();
|
|
4780
4780
|
func();
|