Skip to content

Commit

Permalink
[BUG FIX] Fix bug where subsequent request where not shown (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX committed May 31, 2023
1 parent 59ae8fb commit be94748
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ struct DappInteractor: Sendable, FeatureReducer {
func reduce(into state: inout State, internalAction: InternalAction) -> EffectTask<Action> {
switch internalAction {
case let .receivedRequestFromDapp(request):

switch state.currentModal {
case .some(.dappInteractionCompletion):
// FIXME: this is a temporary hack, to solve bug where incoming requests
// are ignored since completion is believed to be shown, but is not.
state.currentModal = nil
default: break
}

if request.route == .wallet {
// dismiss current request, wallet request takes precedence
state.currentModal = nil
Expand Down

0 comments on commit be94748

Please sign in to comment.