@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.
@@ -5194,7 +5194,7 @@ function WalletContent2({
5194
5194
  const [error, setError] = useState22("");
5195
5195
  useEffect20(() => {
5196
5196
  const init = async () => {
5197
- if (wallet) {
5197
+ if (tonConnectUI.connected) {
5198
5198
  await tonConnectUI.disconnect();
5199
5199
  }
5200
5200
  open();
@@ -5315,7 +5315,7 @@ function WalletContent2({
5315
5315
  setVisible: async (v) => {
5316
5316
  console.log("setVisible", v);
5317
5317
  if (v) {
5318
- if (wallet) {
5318
+ if (tonConnectUI.connected) {
5319
5319
  await tonConnectUI.disconnect();
5320
5320
  }
5321
5321
  setStatus("");
@@ -6379,4 +6379,4 @@ export {
6379
6379
  MatchProvider,
6380
6380
  useMatch
6381
6381
  };
6382
- //# sourceMappingURL=chunk-ZHBFW26I.mjs.map
6382
+ //# sourceMappingURL=chunk-KIVNILBF.mjs.map