Skip to content

Commit

Permalink
added necessary dismiss after deleting current wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
gemdev111 committed Jun 13, 2024
1 parent 308069e commit b617b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gem/Wallets/Scenes/WalletDetailScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -107,6 +109,7 @@ extension WalletDetailScene {
private func onDeleteWallet() {
do {
try model.delete()
dismiss()
} catch {
isPresentingErrorMessage = error.localizedDescription
}
Expand Down

0 comments on commit b617b90

Please sign in to comment.