[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix cache clash
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix cache clash |
Date: |
Wed, 29 Nov 2023 22:21:50 +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 872d0f0be fix cache clash
872d0f0be is described below
commit 872d0f0be6bbb1f3fcd6164b111884877cea6442
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Nov 29 18:21:44 2023 -0300
fix cache clash
---
packages/demobank-ui/src/hooks/circuit.ts | 5 ++---
packages/demobank-ui/src/pages/BankFrame.tsx | 2 ++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/packages/demobank-ui/src/hooks/circuit.ts
b/packages/demobank-ui/src/hooks/circuit.ts
index 327a50409..8a27f652c 100644
--- a/packages/demobank-ui/src/hooks/circuit.ts
+++ b/packages/demobank-ui/src/hooks/circuit.ts
@@ -194,7 +194,7 @@ export function useOnePendingCashouts(account: string) {
}
const { data, error } = useSWR<OperationOk<CashoutWithId | undefined> |
TalerCoreBankErrorsByMethod<"getAccountCashouts"> |
TalerCoreBankErrorsByMethod<"getCashoutById">, TalerHttpError>(
- !config.allow_conversion ? undefined : [account, token,
"getAccountCashouts"], fetcher, {
+ !config.allow_conversion ? undefined : [account, token,
"useOnePendingCashouts"], fetcher, {
refreshInterval: 0,
refreshWhenHidden: false,
revalidateOnFocus: false,
@@ -229,13 +229,12 @@ export function useCashouts(account: string) {
return { ...r.body, id: c.cashout_id }
})
}))
-
const cashouts = all.filter(notUndefined)
return { type: "ok" as const, body: { cashouts } }
}
const { data, error } = useSWR<OperationOk<{ cashouts: CashoutWithId[] }> |
TalerCoreBankErrorsByMethod<"getAccountCashouts">, TalerHttpError>(
- !config.allow_conversion ? undefined : [account, token,
"getAccountCashouts"], fetcher, {
+ !config.allow_conversion ? undefined : [account, token, "useCashouts"],
fetcher, {
refreshInterval: 0,
refreshWhenHidden: false,
revalidateOnFocus: false,
diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx
b/packages/demobank-ui/src/pages/BankFrame.tsx
index a21ba4b27..1762c6b56 100644
--- a/packages/demobank-ui/src/pages/BankFrame.tsx
+++ b/packages/demobank-ui/src/pages/BankFrame.tsx
@@ -47,8 +47,10 @@ export function BankFrame({
if (error) {
const desc = (error instanceof Error ? error.stack : String(error)) as
TranslatedString
if (error instanceof Error) {
+ console.log("Internal error, please report", error)
notifyException(i18n.str`Internal error, please report.`, error)
} else {
+ console.log("Internal error, please report", error)
notifyError(i18n.str`Internal error, please report.`, String(error) as
TranslatedString)
}
resetError()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix cache clash,
gnunet <=