Displaying a different text if account does not support instant transfer

This commit is contained in:
dankito 2024-09-04 21:00:37 +02:00
parent 95be00ad66
commit a41a9bd13a
1 changed files with 5 additions and 1 deletions

View File

@ -196,7 +196,11 @@ fun TransferMoneyDialog(
colors = SwitchDefaults.colors(checkedThumbColor = Colors.CodinuxSecondaryColor)
)
Text("Echtzeitüberweisung (evtl. kostenpflichtig)", Modifier.clickable { instantTransfer = !instantTransfer })
if (accountSupportsInstantTransfer) {
Text("Echtzeitüberweisung (evtl. kostenpflichtig)", Modifier.clickable { instantTransfer = !instantTransfer })
} else {
Text("Echtzeitüberweisung von Konto nicht unterstützt")
}
}
}
}