commit 688518ec7311ea0dc68e1cce6d363a00609ef9f8 parent da5b42025a7996f9b1df8cebe7b6f94c3cd0583a Author: Sebastian <sebasjm@gmail.com> Date: Tue, 10 Jan 2023 11:50:43 -0300 fix: update cache when response is ok Diffstat:
| M | packages/taler-wallet-webextension/src/components/PendingTransactions.tsx | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx @@ -58,10 +58,12 @@ export function PendingTransactions({ goToTransaction }: Props): VNode { ? cache.tx : state.response.transactions.filter((t) => t.pending); + if (state && !state.hasError) { + cache.tx = transactions; + } if (!transactions.length) { return <Fragment />; } - cache.tx = transactions; return ( <PendingTransactionsView goToTransaction={goToTransaction}