From ae1aee13581469a8398321b57e95cc85f210047b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 12 Mar 2023 23:55:53 -0300 Subject: [PATCH] kyc 1min --- .../src/components/form/InputCurrency.tsx | 2 +- packages/merchant-backoffice-ui/src/hooks/instance.ts | 4 +++- 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({ 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, RequestError >([`/private/kyc`], fetcher, { - refreshInterval: 5000, + refreshInterval: 60 * 1000, refreshWhenHidden: false, revalidateOnFocus: false, + revalidateIfStale: false, + revalidateOnMount: false, revalidateOnReconnect: false, refreshWhenOffline: false, errorRetryCount: 0,