aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-10 11:50:43 -0300
committerSebastian <sebasjm@gmail.com>2023-01-10 11:50:43 -0300
commit688518ec7311ea0dc68e1cce6d363a00609ef9f8 (patch)
tree5c5fc90ca66d2b8ade0d2ed7a86b37881def0ce5 /packages
parentda5b42025a7996f9b1df8cebe7b6f94c3cd0583a (diff)
fix: update cache when response is ok
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-webextension/src/components/PendingTransactions.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx
index 2bba86dba..80dc18f49 100644
--- 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}