Skip to content

Commit

Permalink
- fix navigation on Show Open Trade after take is confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
rodvar committed Jan 29, 2025
1 parent 70fb8d1 commit 6acce11
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,15 @@ class TakeOfferReviewPresenter(

fun onGoToOpenTrades() {
setShowTakeOfferSuccessDialog(false)
getRootTabNavController().navigate(Routes.TabOpenTradeList.name) {
popUpTo(Routes.OffersByMarket.name)
}
closeWorkflow()
// ensure we go to the my trade tab
navigateToTab(Routes.TabOpenTradeList)
}

private fun closeWorkflow() {
// TODO review better alternative than double call?
navigateBackTo(Routes.OffersByMarket)
navigateBack()
}

private fun applyPriceDetails() {
Expand Down

0 comments on commit 6acce11

Please sign in to comment.