commit 19cf394c9fe8d3ca3c53436c75178f31b2bb5e83
parent b05e257697b621b7b2145ebb7c5e128370ea4d83
Author: Marc Stibane <marc@taler.net>
Date: Sat, 22 Aug 2026 09:10:30 +0200
AI: defensive
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift
@@ -226,7 +226,9 @@ struct ShoppingView: View {
let image = Image(systemName: currency == nil ? LINK : MAPPIN) // or
Button("\(image) \(buttonTitle)") {
- UIApplication.shared.open(URL(string: buttonLink)!, options: [:])
+ if let url = URL(string: buttonLink) {
+ UIApplication.shared.open(url, options: [:])
+ }
dismissTop(stack.push())
}
.buttonStyle(TalerButtonStyle(type: .bordered, narrow: false, aligned: .center))