Updated on 2026-08-14
This commit is contained in:
parent
9f3ead841c
commit
09d6f9baa6
2 changed files with 9 additions and 1 deletions
|
|
@ -69,6 +69,9 @@ internal class SendEntryPointModel @Inject constructor(
|
|||
}
|
||||
|
||||
override fun onBack() {
|
||||
router.pop()
|
||||
modelScope.launch {
|
||||
sendAmountUpdateTrigger.triggerUpdateAmount(lastSavedAmount)
|
||||
router.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -257,6 +257,11 @@ internal class SendAmountModel @Inject constructor(
|
|||
private fun confirmConvertToToken() {
|
||||
val amountParams = params as? SendAmountComponentParams.AmountParams ?: return
|
||||
val amountFieldData = uiState.value as? AmountState.Data
|
||||
_uiState.update {
|
||||
(it as? AmountState.Data)?.copy(
|
||||
isPrimaryButtonEnabled = false,
|
||||
) ?: it
|
||||
}
|
||||
amountParams.callback.onConvertToAnotherToken(amountFieldData?.amountTextField?.value.orEmpty())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue