Skip to content

Commit

Permalink
Add Ignore user cancelled error in WalletConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Jun 3, 2024
1 parent c07e8ca commit 5ccd082
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ class TransferDataCallback<T: Identifiable>: Identifiable {

extension WalletCoordinator: WalletConnectorInteractable {
func sessionReject(error: Error) {
let ignoreErrors = [
"User cancelled" // User cancelled throw by WalletConnect if session proposal is rejected
]

guard !ignoreErrors.contains(error.localizedDescription) else {
return
}

self.isPresentingError = error.localizedDescription
}

Expand Down

0 comments on commit 5ccd082

Please sign in to comment.