Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-16 18:01:10 +03:00
commit b5b44c7122
7 changed files with 37 additions and 16 deletions

View file

@ -33,12 +33,18 @@ internal class SwapRouter(
}
fun openTokenDetails(userWalletId: UserWalletId, currency: CryptoCurrency) {
router.push(
AppRoute.CurrencyDetails(
userWalletId = userWalletId,
currency = currency,
),
val route = AppRoute.CurrencyDetails(
userWalletId = userWalletId,
currency = currency,
)
if (route in router.stack) {
router.popTo(route)
} else {
router.pop {
router.push(route)
}
}
}
}