Updated on 2026-08-14
This commit is contained in:
parent
9ad4259a5c
commit
06e726d9ad
2 changed files with 8 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package com.tangem.common.ui.alerts
|
|||
import com.tangem.common.ui.alerts.models.AlertDemoModeUM
|
||||
import com.tangem.common.ui.alerts.models.AlertTransactionErrorUM
|
||||
import com.tangem.common.ui.alerts.models.AlertUM
|
||||
import com.tangem.core.ui.R
|
||||
import com.tangem.core.ui.extensions.resourceReference
|
||||
import com.tangem.core.ui.extensions.wrappedList
|
||||
import com.tangem.domain.transaction.error.SendTransactionError
|
||||
|
|
@ -43,6 +44,12 @@ class TransactionErrorAlertConverter(
|
|||
cause = value.ex?.localizedMessage,
|
||||
onConfirmClick = { onFailedTxEmailClick(value.ex?.localizedMessage.orEmpty()) },
|
||||
)
|
||||
is SendTransactionError.CreateAccountUnderfunded -> AlertTransactionErrorUM(
|
||||
code = "",
|
||||
cause = null,
|
||||
causeTextReference = resourceReference(R.string.no_account_polkadot, wrappedList(value.amount)),
|
||||
onConfirmClick = popBackStack,
|
||||
)
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue