Skip to content

Commit

Permalink
fix(wallet): Fix tx submission screen gets dismissed automatically af…
Browse files Browse the repository at this point in the history
…ter tx is confirmed (uplift to 1.71.x) (#25968)

Uplift of #25957 (squashed) to release
  • Loading branch information
brave-builds authored Oct 15, 2024
1 parent 33728a4 commit 485c2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public class CryptoStore: ObservableObject, WalletObserverStore {
@Published var isPresentingPendingRequest: Bool = false {
didSet {
if !isPresentingPendingRequest {
confirmationStore = nil
closeConfirmationStore()
closeSignMessageRequestStore()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,5 @@ struct RequestContainerView<DismissContent: ToolbarContent>: View {
}
}
.navigationViewStyle(.stack)
.onDisappear {
// `onDisappear` on individual views will trigger for navigation pushes.
// Close stores when navigation covers manual dismiss & onDismiss() cases.
cryptoStore.closeConfirmationStore()
cryptoStore.closeSignMessageRequestStore()
}
}
}

0 comments on commit 485c2b7

Please sign in to comment.