Updated on 2026-08-14
This commit is contained in:
parent
407cfd491f
commit
646349ff69
7 changed files with 359 additions and 11 deletions
|
|
@ -185,6 +185,8 @@ internal class WalletLoadingStateFactory(
|
|||
}
|
||||
|
||||
private fun createWalletActions(userWallet: UserWallet): PersistentList<TangemButtonUM> {
|
||||
val isSingleWalletWithToken =
|
||||
userWallet is UserWallet.Cold && userWallet.scanResponse.cardTypesResolver.isSingleWalletWithToken()
|
||||
return buildList {
|
||||
add(
|
||||
WalletActionButtons.AddFunds(
|
||||
|
|
@ -193,7 +195,7 @@ internal class WalletLoadingStateFactory(
|
|||
).buttonUM,
|
||||
)
|
||||
addIf(
|
||||
condition = !userWallet.isSingleWallet(),
|
||||
condition = !userWallet.isSingleWallet() && !isSingleWalletWithToken,
|
||||
element = WalletActionButtons.Swap(
|
||||
isEnabled = false,
|
||||
onClick = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue