Skip to content

Commit

Permalink
Uplift of #25957 (squashed) to release
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Oct 14, 2024
1 parent 7d51df6 commit 0f726bd
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 0f726bd

Please sign in to comment.