Fixed that if a TAN needs to be entered AddAccountDialog doesn't get dismissed
This commit is contained in:
parent
20a396c33b
commit
d3fa90d529
|
@ -77,7 +77,9 @@ struct AddAccountDialog: View {
|
||||||
|
|
||||||
func handleAddAccountResponse(_ response: AddAccountResponse) {
|
func handleAddAccountResponse(_ response: AddAccountResponse) {
|
||||||
if (response.isSuccessful) {
|
if (response.isSuccessful) {
|
||||||
presentation.wrappedValue.dismiss()
|
DispatchQueue.main.async { // dispatch async as may EnterTanDialog is still displayed so dismiss() won't dismiss this view
|
||||||
|
self.presentation.wrappedValue.dismiss()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self.errorMessage = Message(title: Text("Could not add account"), message: Text("Error message from your bank \(response.errorToShowToUser ?? "")"))
|
self.errorMessage = Message(title: Text("Could not add account"), message: Text("Error message from your bank \(response.errorToShowToUser ?? "")"))
|
||||||
|
|
Loading…
Reference in New Issue