Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-07 12:25:03 +03:00
parent e0f3b72147
commit 67261ff150
3 changed files with 7 additions and 3 deletions

View file

@ -139,7 +139,9 @@ internal class TokenDetailsViewModel @Inject constructor(
?.unbundle(CryptoCurrency.serializer())
?: error("This screen can't be opened without `CryptoCurrency`")
private val userWallet: UserWallet
private val userWallet: UserWallet by lazy {
getUserWalletUseCase(userWalletId).getOrNull() ?: error("UserWallet not found")
}
lateinit var router: InnerTokenDetailsRouter
@ -203,7 +205,6 @@ internal class TokenDetailsViewModel @Inject constructor(
),
),
)
userWallet = getUserWalletUseCase(userWalletId).getOrNull() ?: error("UserWallet not found")
}
private fun onBuyCurrencyDeepLink(externalTxId: String) {