@matchain/matchid-sdk-react 0.1.48-alpha.29 → 0.1.48-alpha.30

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.
@@ -12,7 +12,7 @@ import {
12
12
  useTransaction,
13
13
  useUserInfo,
14
14
  useWallet
15
- } from "../chunk-ZHBFW26I.mjs";
15
+ } from "../chunk-KIVNILBF.mjs";
16
16
  import "../chunk-UA6XHZHX.mjs";
17
17
  import {
18
18
  useLayout_exports
package/dist/index.js CHANGED
@@ -4629,7 +4629,7 @@ function WalletContent2({
4629
4629
  const [error, setError] = (0, import_react25.useState)("");
4630
4630
  (0, import_react25.useEffect)(() => {
4631
4631
  const init = async () => {
4632
- if (wallet) {
4632
+ if (tonConnectUI.connected) {
4633
4633
  await tonConnectUI.disconnect();
4634
4634
  }
4635
4635
  open();
@@ -4750,7 +4750,7 @@ function WalletContent2({
4750
4750
  setVisible: async (v) => {
4751
4751
  console.log("setVisible", v);
4752
4752
  if (v) {
4753
- if (wallet) {
4753
+ if (tonConnectUI.connected) {
4754
4754
  await tonConnectUI.disconnect();
4755
4755
  }
4756
4756
  setStatus("");