Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-30 13:29:28 +03:00
parent 2541461d44
commit bef13c837f
10 changed files with 42 additions and 18 deletions

View file

@ -177,7 +177,7 @@ internal class DefaultSendComponent @AssistedInject constructor(
analyticsCategoryName = analyticCategoryName,
userWallet = model.userWallet,
appCurrency = model.appCurrency,
cryptoCurrencyStatus = model.cryptoCurrencyStatus,
cryptoCurrencyStatus = cryptoCurrencyStatus,
callback = model,
predefinedValues = model.predefinedValues,
onBackClick = {
@ -270,8 +270,8 @@ internal class DefaultSendComponent @AssistedInject constructor(
currentRoute = currentRoute,
isBalanceHidingFlow = model.isBalanceHiddenFlow,
analyticsCategoryName = analyticCategoryName,
cryptoCurrencyStatus = model.cryptoCurrencyStatus,
feeCryptoCurrencyStatus = model.feeCryptoCurrencyStatus,
cryptoCurrencyStatus = cryptoCurrencyStatus,
feeCryptoCurrencyStatus = feeCryptoCurrencyStatus,
appCurrency = model.appCurrency,
callback = model,
predefinedValues = predefinedValues,

View file

@ -273,9 +273,9 @@ internal class NFTSendConfirmModel @Inject constructor(
ifLeft = { error ->
Timber.e(error)
_uiState.update(NFTSendConfirmSendingStateTransformer(isSending = false))
alertFactory.getGenericErrorState {
onFailedTxEmailClick(error.localizedMessage.orEmpty())
}
alertFactory.getGenericErrorState(
onFailedTxEmailClick = { onFailedTxEmailClick(error.localizedMessage.orEmpty()) },
)
},
ifRight = { txData ->
sendTransaction(txData)

View file

@ -201,9 +201,10 @@ internal class NFTSendModel @Inject constructor(
}
},
ifLeft = {
alertFactory.getGenericErrorState {
onFailedTxEmailClick(it.toString())
}
alertFactory.getGenericErrorState(
onFailedTxEmailClick = { onFailedTxEmailClick(it.toString()) },
popBack = { router.pop() },
)
},
)
}.launchIn(modelScope)