diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-04 14:17:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-04 14:17:55 -0300 |
commit | e1d86816a7c07cb8ca2d54676d5cdbbe513f2ba7 (patch) | |
tree | d4ed5506ab3550a7e9b1a082d7ffeddf9f3c4954 /packages/merchant-backoffice-ui/src/hooks/instance.ts | |
parent | ff20c3e25e076c24f7cb93eabe58b6f934f51f35 (diff) | |
download | wallet-core-e1d86816a7c07cb8ca2d54676d5cdbbe513f2ba7.tar.xz |
backoffcie new version, lot of changes
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/instance.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/instance.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.ts b/packages/merchant-backoffice-ui/src/hooks/instance.ts index eae65d64c..32ed30c6f 100644 --- a/packages/merchant-backoffice-ui/src/hooks/instance.ts +++ b/packages/merchant-backoffice-ui/src/hooks/instance.ts @@ -198,6 +198,7 @@ export function useInstanceDetails(): HttpResponse< revalidateOnFocus: false, revalidateOnReconnect: false, refreshWhenOffline: false, + revalidateIfStale: false, errorRetryCount: 0, errorRetryInterval: 1, shouldRetryOnError: false, @@ -211,7 +212,7 @@ export function useInstanceDetails(): HttpResponse< type KYCStatus = | { type: "ok" } - | { type: "redirect"; status: MerchantBackend.Instances.AccountKycRedirects }; + | { type: "redirect"; status: MerchantBackend.KYC.AccountKycRedirects }; export function useInstanceKYCDetails(): HttpResponse< KYCStatus, @@ -220,7 +221,7 @@ export function useInstanceKYCDetails(): HttpResponse< const { fetcher } = useBackendInstanceRequest(); const { data, error } = useSWR< - HttpResponseOk<MerchantBackend.Instances.AccountKycRedirects>, + HttpResponseOk<MerchantBackend.KYC.AccountKycRedirects>, RequestError<MerchantBackend.ErrorDetail> >([`/private/kyc`], fetcher, { refreshInterval: 60 * 1000, |