Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-21 16:53:21 +05:00
parent 15ff7e402f
commit 01e2cfec97

View file

@ -376,8 +376,11 @@ internal class SendViewModel @Inject constructor(
feeCryptoCurrencyStatus = feeCurrencyStatus feeCryptoCurrencyStatus = feeCurrencyStatus
subscribeOnQRScannerResult() subscribeOnQRScannerResult()
when { when {
uiState.sendState?.isSuccess == true -> { uiState.sendState?.isSuccess != true -> {
stateRouter.showSend() uiState = stateFactory.getReadyState()
getWalletsAndRecent()
stateRouter.showRecipient()
updateNotifications()
} }
transactionId != null && amount != null && destinationAddress != null -> { transactionId != null && amount != null && destinationAddress != null -> {
loadFee() loadFee()
@ -385,12 +388,6 @@ internal class SendViewModel @Inject constructor(
stateRouter.showSend() stateRouter.showSend()
updateNotifications() updateNotifications()
} }
else -> {
uiState = stateFactory.getReadyState()
getWalletsAndRecent()
stateRouter.showRecipient()
updateNotifications()
}
} }
} }