commit 546cd3ba2945fb88b1c4e9c97c475cc130dcb3ab parent ced20992ca5676af21cfa411b4c2d523e564ce8a Author: Marc Stibane <marc@taler.net> Date: Fri, 14 Aug 2026 11:32:36 +0200 simplify Diffstat:
| M | TalerWallet1/Views/Transactions/PaymentTransactionView.swift | | | 9 | +-------- |
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/PaymentTransactionView.swift b/TalerWallet1/Views/Transactions/PaymentTransactionView.swift @@ -26,13 +26,6 @@ struct MerchantHeader: View { return terms.summary } - func logo(_ logoBase64: String) -> Image? { - if let image = Image(imageBase64: logoBase64) { - return image - } - return nil - } - var body: some View { if let terms { Section { @@ -43,7 +36,7 @@ struct MerchantHeader: View { Spacer() VStack(alignment: .center) { if let imageBase64 = terms.merchant.logo { - if let image = logo(imageBase64) { + if let image = Image(imageBase64: imageBase64) { image .resizable() .aspectRatio(contentMode: .fit)