diff --git a/Kukai Mobile/Modules/Home/HomeTabBarController.swift b/Kukai Mobile/Modules/Home/HomeTabBarController.swift index 509405b3..a6e5249d 100644 --- a/Kukai Mobile/Modules/Home/HomeTabBarController.swift +++ b/Kukai Mobile/Modules/Home/HomeTabBarController.swift @@ -473,12 +473,22 @@ extension HomeTabBarController: WalletConnectServiceDelegate { } public func pairRequested() { - self.performSegue(withIdentifier: "wallet-connect-pair", sender: nil) + if self.presentedViewController == nil { + self.performSegue(withIdentifier: "wallet-connect-pair", sender: nil) + } else { + WalletConnectService.rejectCurrentProposal(completion: nil) + self.windowError(withTitle: "error".localized(), description: "error-wc2-cant-open-more-modals".localized()) + } } public func signRequested() { self.loadingViewHideActivityAndFade(withDuration: 0.5) - self.performSegue(withIdentifier: "wallet-connect-sign", sender: nil) + if self.presentedViewController == nil { + self.performSegue(withIdentifier: "wallet-connect-sign", sender: nil) + } else { + WalletConnectService.rejectCurrentRequest(completion: nil) + self.windowError(withTitle: "error".localized(), description: "error-wc2-cant-open-more-modals".localized()) + } } public func processingIncomingOperations() {