commit ba5e107617c0b1dc6a3ee8d4dfcb9c6b5beb1678
parent c51ad048efeaf9f2f9ae0a2975d05ce44144d4d4
Author: Iván Ávalos <avalos@disroot.org>
Date: Wed, 8 Jan 2025 23:11:58 +0100
[wallet] do not show “Authorize in bank” button when bankConfirmationUrl is null
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt b/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt
@@ -93,6 +93,11 @@ private fun ConfirmBankButton(
tx: Transaction,
listener: ActionListener,
) {
+ // TODO: should check go here?
+ if (tx is TransactionWithdrawal
+ && tx.withdrawalDetails is WithdrawalDetails.TalerBankIntegrationApi
+ && tx.withdrawalDetails.bankConfirmationUrl == null) return
+
Button(
onClick = { listener.onActionButtonClicked(tx, ActionListener.Type.CONFIRM_WITH_BANK) },
modifier = modifier,