commit b13b5459a0493a746ae0b12712dffb6abb9ab48a parent f0f7ebb029efc1bf465d02da1e8ee9b229fb9092 Author: Marc Stibane <marc@taler.net> Date: Mon, 17 Feb 2025 12:46:25 +0100 shortie.value Diffstat:
| M | TalerWallet1/Views/HelperViews/CurrencyInputView.swift | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/CurrencyInputView.swift b/TalerWallet1/Views/HelperViews/CurrencyInputView.swift @@ -30,12 +30,7 @@ struct ShortcutButton: View { func isDisabled(shortie: Amount) -> Bool { if let available { - do { - return try available < shortie - } catch { - print("❗️Cannot compare available.\(available.currencyStr) to shortie.\(shortie.currencyStr))") - return false - } + return available.value < shortie.value } return false }