aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-12 23:55:53 -0300
committerSebastian <sebasjm@gmail.com>2023-03-12 23:55:53 -0300
commitae1aee13581469a8398321b57e95cc85f210047b (patch)
tree03b44efa4dc6799457cb5550691a81e3ea0f06a0
parent77c71a4c2d4d202f82a33bd44f5a099f82249482 (diff)
kyc 1min
-rw-r--r--packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx2
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/instance.ts4
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
index 3b84855da..b02354d7c 100644
--- a/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
+++ b/packages/merchant-backoffice-ui/src/components/form/InputCurrency.tsx
@@ -58,7 +58,7 @@ export function InputCurrency<T>({
inputType="number"
expand={expand}
toStr={(v?: Amount) => v?.split(":")[1] || ""}
- fromStr={(v: string) => (!v ? "" : `${config.currency}:${v}`)}
+ fromStr={(v: string) => (!v ? undefined : `${config.currency}:${v}`)}
inputExtra={{ min: 0 }}
>
{children}
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.ts b/packages/merchant-backoffice-ui/src/hooks/instance.ts
index c9eb84e74..9c76c3381 100644
--- a/packages/merchant-backoffice-ui/src/hooks/instance.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/instance.ts
@@ -223,9 +223,11 @@ export function useInstanceKYCDetails(): HttpResponse<
HttpResponseOk<MerchantBackend.Instances.AccountKycRedirects>,
RequestError<MerchantBackend.ErrorDetail>
>([`/private/kyc`], fetcher, {
- refreshInterval: 5000,
+ refreshInterval: 60 * 1000,
refreshWhenHidden: false,
revalidateOnFocus: false,
+ revalidateIfStale: false,
+ revalidateOnMount: false,
revalidateOnReconnect: false,
refreshWhenOffline: false,
errorRetryCount: 0,