This commit is contained in:
Sebastian 2023-03-12 23:55:53 -03:00
parent 77c71a4c2d
commit ae1aee1358
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
2 changed files with 4 additions and 2 deletions

View File

@ -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}

View File

@ -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,