From 11b55a6ecc075c4e7b9ae9193535613f3f6f229e Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 1 Sep 2020 15:07:54 +0200 Subject: [PATCH] Implemented that no error message gets displayed if user cancelled transferring money --- .../BankingiOSApp/ui/views/TransferMoneyDialog.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift index 4fdbf75a..62975061 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift @@ -307,7 +307,7 @@ struct TransferMoneyDialog: View { self.presentation.wrappedValue.dismiss() }) } - else { + else if response.userCancelledAction == false { self.transferMoneyResponseMessage = Message(message: Text("Could not transfer \(data.amount) \("€") to \(data.creditorName). Error: \(response.errorToShowToUser ?? "").")) } }