aboutsummaryrefslogtreecommitdiff
path: root/packages/kyc-ui/src/app.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-08-27 19:01:57 -0300
committerSebastian <sebasjm@gmail.com>2024-08-27 19:01:57 -0300
commitca4bccc5de2d92333267ced69535d4400c394fb9 (patch)
tree4c53d12734aabc4863f57d9820b482052d63c127 /packages/kyc-ui/src/app.tsx
parent94cb658024a17084da5de310bc5104cff6fd8337 (diff)
refresh decisions history when the auditor makes decision
Diffstat (limited to 'packages/kyc-ui/src/app.tsx')
-rw-r--r--packages/kyc-ui/src/app.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/kyc-ui/src/app.tsx b/packages/kyc-ui/src/app.tsx
index fb63771d7..0c7cd71bf 100644
--- a/packages/kyc-ui/src/app.tsx
+++ b/packages/kyc-ui/src/app.tsx
@@ -20,14 +20,14 @@ import {
assertUnreachable,
canonicalizeBaseUrl,
getGlobalLogLevel,
- setGlobalLogLevelFromString
+ setGlobalLogLevelFromString,
} from "@gnu-taler/taler-util";
import {
BrowserHashNavigationProvider,
ExchangeApiProvider,
Loading,
TalerWalletIntegrationBrowserProvider,
- TranslationProvider
+ TranslationProvider,
} from "@gnu-taler/web-util/browser";
import { VNode, h } from "preact";
import { useEffect, useState } from "preact/hooks";
@@ -63,7 +63,7 @@ export function App(): VNode {
baseUrl={new URL("/", baseUrl)}
frameOnError={Frame}
evictors={{
- exchange: evictExchangeSwrCache
+ exchange: evictExchangeSwrCache,
}}
>
<SWRConfig
@@ -154,10 +154,11 @@ function getInitialBackendBaseURL(
const evictExchangeSwrCache: CacheEvictor<TalerExchangeCacheEviction> = {
async notifySuccess(op) {
switch (op) {
- case TalerExchangeCacheEviction.CREATE_DESCISION:{
- await revalidateKycInfo()
+ case TalerExchangeCacheEviction.CREATE_DESCISION: {
+ await revalidateKycInfo();
return;
}
+ case TalerExchangeCacheEviction.MAKE_AML_DECISION:
case TalerExchangeCacheEviction.UPLOAD_KYC_FORM: {
return;
}
@@ -167,4 +168,3 @@ const evictExchangeSwrCache: CacheEvictor<TalerExchangeCacheEviction> = {
}
},
};
-