From b617b902932720eba525081a43293ef55fe3e502 Mon Sep 17 00:00:00 2001 From: gemdev111 Date: Thu, 13 Jun 2024 16:16:47 +0300 Subject: [PATCH] added necessary dismiss after deleting current wallet --- Gem/Wallets/Scenes/WalletDetailScene.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gem/Wallets/Scenes/WalletDetailScene.swift b/Gem/Wallets/Scenes/WalletDetailScene.swift index b810e6a8..c2f9519f 100644 --- a/Gem/Wallets/Scenes/WalletDetailScene.swift +++ b/Gem/Wallets/Scenes/WalletDetailScene.swift @@ -6,7 +6,9 @@ import Style struct WalletDetailScene: View { let model: WalletDetailViewModel - + + @Environment(\.dismiss) private var dismiss + @State private var name: String @State private var words: [String]? = nil @@ -107,6 +109,7 @@ extension WalletDetailScene { private func onDeleteWallet() { do { try model.delete() + dismiss() } catch { isPresentingErrorMessage = error.localizedDescription }