Fixed that by default "null" has been displayed for amount
This commit is contained in:
parent
6ac2faf207
commit
b13be27a2d
|
@ -56,7 +56,7 @@ fun TransferMoneyDialog(
|
||||||
|
|
||||||
var recipientName by remember { mutableStateOf(data.recipientName ?: "") }
|
var recipientName by remember { mutableStateOf(data.recipientName ?: "") }
|
||||||
var recipientAccountIdentifier by remember { mutableStateOf(data.recipientAccountIdentifier ?: "") }
|
var recipientAccountIdentifier by remember { mutableStateOf(data.recipientAccountIdentifier ?: "") }
|
||||||
var amount by remember { mutableStateOf(data.amount.toString()) }
|
var amount by remember { mutableStateOf(data.amount?.toString() ?: "") }
|
||||||
var paymentReference by remember { mutableStateOf(data.reference ?: "") }
|
var paymentReference by remember { mutableStateOf(data.reference ?: "") }
|
||||||
val accountSupportsInstantTransfer by remember(senderAccount) { derivedStateOf { senderAccount.supportsInstantTransfer } }
|
val accountSupportsInstantTransfer by remember(senderAccount) { derivedStateOf { senderAccount.supportsInstantTransfer } }
|
||||||
var instantTransfer by remember { mutableStateOf(false) }
|
var instantTransfer by remember { mutableStateOf(false) }
|
||||||
|
@ -205,8 +205,8 @@ fun TransferMoneyDialog(
|
||||||
getItemTitle = { suggestion -> suggestion.amount.toString() },
|
getItemTitle = { suggestion -> suggestion.amount.toString() },
|
||||||
onEnteredTextChanged = { amount = it },
|
onEnteredTextChanged = { amount = it },
|
||||||
onSelectedItemChanged = {
|
onSelectedItemChanged = {
|
||||||
amount = it?.amount.toString()
|
|
||||||
if (it != null) {
|
if (it != null) {
|
||||||
|
amount = it.amount.toString()
|
||||||
paymentReference = it.reference
|
paymentReference = it.reference
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue