Skip to content

Commit

Permalink
Fix disconnecting tonconnect when networks are different
Browse files Browse the repository at this point in the history
  • Loading branch information
behrang committed Oct 9, 2023
1 parent b7f161b commit 36e8a8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ export class Model {
) {
this.setAddress(Address.parseRaw(wallet.account.address))
} else {
void this.tonConnectUI?.disconnect()
runInAction(() => {
this.setAddress(undefined)
this.setErrorMessage(
Expand Down

0 comments on commit 36e8a8a

Please sign in to comment.