diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift index d475186d..f47403a3 100755 --- a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift +++ b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift @@ -417,14 +417,6 @@ struct TransactionSummaryList: View { .onNotification(.DismissSheet) { notification in checkDismiss(notification, "exchangeWaitReserve or withdrawCoins => dismiss sheet") } - .onNotification(.PendingReady) { notification in - checkReload(stack.push("pendingReady"), notification, "pending ready ==> reload for talerURI") - } - .onNotification(.TransactionStateTransition) { notification in - if !didDelete { - checkReload(stack.push("TransactionStateTransition"), notification, "some transition ==> reload") - } - } if #available(iOS 17.0, *) { list @@ -442,6 +434,18 @@ struct TransactionSummaryList: View { } } // else } // Group + // These two used to hang on the list above. The list does not exist while the + // transaction is still being loaded, so a transition arriving in that window was + // lost and the view kept showing the state the first load had read - a payment + // stuck on "claim-proposal" with no Pay button. + .onNotification(.PendingReady) { notification in + checkReload(stack.push("pendingReady"), notification, "pending ready ==> reload for talerURI") + } + .onNotification(.TransactionStateTransition) { notification in + if !didDelete { + checkReload(stack.push("TransactionStateTransition"), notification, "some transition ==> reload") + } + } .onChange(of: scope) { newVal in if let newVal { currencyInfo = controller.info(for: newVal) ?? CurrencyInfo.zero(UNKNOWN)