Skip to content

Commit

Permalink
[BUG FIX] "Double request"-bug fixed (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX committed May 31, 2023
1 parent 616841f commit 59ae8fb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,7 @@ public struct TransactionReview: Sendable, FeatureReducer {

case let .destination(.presented(.submitting(.delegate(.committedSuccessfully(txID))))):
state.destination = nil

return .task {
try? await clock.sleep(for: .milliseconds(700)) // bah, we need to to dismiss `state.destination` before proceeding with completion
return .delegate(.transactionCompleted(txID))
}
return .send(.delegate(.transactionCompleted(txID)))

default:
return .none
Expand Down

0 comments on commit 59ae8fb

Please sign in to comment.