Skip to content

Commit

Permalink
fix: broken pending toast
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Dec 5, 2023
1 parent fb83cd9 commit 67f0a48
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
} as SignPayloadResponse

this.notifyListeners(session.pairingTopic, signPayloadResponse)
if (this.session && this.messageIds.length) {
this.checkWalletReadiness(this.session.pairingTopic)
}
})
.catch(async () => {
const errorResponse: ErrorResponseInput = {
Expand All @@ -332,6 +335,9 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
} as ErrorResponse

this.notifyListeners(session.pairingTopic, errorResponse)
if (this.session && this.messageIds.length) {
this.checkWalletReadiness(this.session.pairingTopic)
}
})
}

Expand Down Expand Up @@ -379,6 +385,10 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
}

this.notifyListeners(session.pairingTopic, sendOperationResponse)

if (this.session && this.messageIds.length) {
this.checkWalletReadiness(this.session.pairingTopic)
}
})
.catch(async () => {
const errorResponse: ErrorResponseInput = {
Expand All @@ -388,6 +398,10 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
} as ErrorResponse

this.notifyListeners(session.pairingTopic, errorResponse)

if (this.session && this.messageIds.length) {
this.checkWalletReadiness(this.session.pairingTopic)
}
})
}

Expand Down

0 comments on commit 67f0a48

Please sign in to comment.