Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-lsvk committed Nov 14, 2023
1 parent 0727ecf commit 80b55d4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Example/DApp/Modules/Auth/AuthPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@ final class AuthPresenter: ObservableObject {
}

@MainActor
func deletePairing() {
Task {
if let topic = walletConnectUri?.topic {
try await Auth.instance.disconnect(topic: topic)
showSigningState.toggle()
if let walletUri = URL(string: "walletapp://") {
DispatchQueue.main.async {
UIApplication.shared.open(walletUri)
}
func deletePairing() async {
if let topic = walletConnectUri?.topic {
try await Auth.instance.disconnect(topic: topic)
showSigningState.toggle()
if let walletUri = URL(string: "walletapp://") {
DispatchQueue.main.async {
UIApplication.shared.open(walletUri)
}
}
}
Expand Down

0 comments on commit 80b55d4

Please sign in to comment.