gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: fix: update cache when respon


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix: update cache when response is ok
Date: Tue, 10 Jan 2023 15:50:52 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 688518ec7 fix: update cache when response is ok
688518ec7 is described below

commit 688518ec7311ea0dc68e1cce6d363a00609ef9f8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Jan 10 11:50:43 2023 -0300

    fix: update cache when response is ok
---
 .../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
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}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]