@matchain/matchid-sdk-react 0.1.40-alpha.9 → 0.1.41

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.
@@ -4,7 +4,7 @@ import {
4
4
  useMatchEvents,
5
5
  useUserInfo,
6
6
  useWallet
7
- } from "../chunk-PPKUHUE3.mjs";
7
+ } from "../chunk-RYZFW6P6.mjs";
8
8
  import "../chunk-DPXMCLYK.mjs";
9
9
  import "../chunk-J5LGTIGS.mjs";
10
10
  export {
package/dist/index.js CHANGED
@@ -3740,7 +3740,9 @@ function WalletContent2({
3740
3740
  setVisible: async (v) => {
3741
3741
  console.log("setVisible", v);
3742
3742
  if (v) {
3743
- await tonConnectUI.disconnect();
3743
+ if (wallet) {
3744
+ await tonConnectUI.disconnect();
3745
+ }
3744
3746
  setStatus("");
3745
3747
  statusRef.current = "";
3746
3748
  open();