We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a595577 commit ea65e68Copy full SHA for ea65e68
app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt
@@ -270,11 +270,12 @@ class AppViewModel @Inject constructor(
270
271
private fun onAmountChange(value: String) {
272
val newInput = if (_sendUiState.value.amountInput == "0") value else _sendUiState.value.amountInput + value
273
- val isAmountValid = validateAmount(newInput)
274
- if (isAmountValid) {
275
- _sendUiState.update { it.copy( amountInput = newInput,) }
+ _sendUiState.update {
+ it.copy(
+ amountInput = newInput,
276
+ isAmountInputValid = validateAmount(newInput)
277
+ )
278
}
- _sendUiState.update { it.copy(isAmountInputValid = isAmountValid,) }
279
280
281
private fun onPaymentMethodSwitch() {
0 commit comments