Skip to content

Commit

Permalink
fix: safer method
Browse files Browse the repository at this point in the history
  • Loading branch information
bigearsenal committed Jan 4, 2024
1 parent 4b62f58 commit 0ae0149
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ final class CryptoCoordinator: Coordinator<CryptoResult> {
private func showUserAction(userAction: any UserAction) {
coordinate(to: TransactionDetailCoordinator(
viewModel: .init(userAction: userAction),
presentingViewController: navigationController.parent!
presentingViewController: navigationController.parent ?? navigationController
))
.sink(receiveValue: { _ in })
.store(in: &subscriptions)
}

private func showSendTransactionStatus(model: SendTransaction) {
coordinate(to: SendTransactionStatusCoordinator(
parentController: navigationController.parent!,
parentController: navigationController.parent ?? navigationController,
transaction: model
))
.sink(receiveValue: {})
Expand Down

0 comments on commit 0ae0149

Please sign in to comment.