diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/viewmodels/TokenDetailsViewModel.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/viewmodels/TokenDetailsViewModel.kt index 7be83bff9e..eeb8b108b0 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/viewmodels/TokenDetailsViewModel.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/viewmodels/TokenDetailsViewModel.kt @@ -425,17 +425,19 @@ internal class TokenDetailsViewModel @Inject constructor( } override fun onTransactionClick(txHash: String) { - val blockchain = Blockchain.fromId(cryptoCurrency.network.id.value) - // TODO: Fix ton tx urls [REDACTED_TASK_KEY] - if (blockchain == Blockchain.TON || blockchain == Blockchain.TONTestnet) { - return - } else { - router.openUrl( - url = getExplorerTransactionUrlUseCase( - txHash = txHash, - networkId = cryptoCurrency.network.id, - ), - ) + // TODO: Fix tx urls [REDACTED_TASK_KEY] + when (Blockchain.fromId(cryptoCurrency.network.id.value)) { + Blockchain.TON, Blockchain.TONTestnet, + Blockchain.Decimal, Blockchain.DecimalTestnet, + -> return + else -> { + router.openUrl( + url = getExplorerTransactionUrlUseCase( + txHash = txHash, + networkId = cryptoCurrency.network.id, + ), + ) + } } }