Fixed resetting epcQrCodeGeneratingError (otherwise after first error always epcQrCodeGeneratingError would be displayed)
This commit is contained in:
parent
5d00bbf77e
commit
fd53b2f005
|
@ -64,6 +64,8 @@ fun CreateEpcQrCodeScreen(onClosed: () -> Unit) {
|
||||||
|
|
||||||
val epcQrCodeBytes by remember(receiverName, iban, bic, amount, reference, informationForUser) {
|
val epcQrCodeBytes by remember(receiverName, iban, bic, amount, reference, informationForUser) {
|
||||||
derivedStateOf {
|
derivedStateOf {
|
||||||
|
epcQrCodeGeneratingError = null
|
||||||
|
|
||||||
if (receiverName.isNotBlank() && iban.isNotBlank()) {
|
if (receiverName.isNotBlank() && iban.isNotBlank()) {
|
||||||
try {
|
try {
|
||||||
epcQrCodeService.generateEpcQrCode(receiverName, iban, bic.takeUnless { it.isBlank() }, amount.takeUnless { it.isBlank() }, reference.takeUnless { it.isBlank() }, informationForUser.takeUnless { it.isBlank() })
|
epcQrCodeService.generateEpcQrCode(receiverName, iban, bic.takeUnless { it.isBlank() }, amount.takeUnless { it.isBlank() }, reference.takeUnless { it.isBlank() }, informationForUser.takeUnless { it.isBlank() })
|
||||||
|
|
Loading…
Reference in New Issue