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,