diff options
Diffstat (limited to 'packages/kyc-ui/src/app.tsx')
-rw-r--r-- | packages/kyc-ui/src/app.tsx | 12 |
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> = { } }, }; - |