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" inputType="number"
expand={expand} expand={expand}
toStr={(v?: Amount) => v?.split(":")[1] || ""} toStr={(v?: Amount) => v?.split(":")[1] || ""}
fromStr={(v: string) => (!v ? "" : `${config.currency}:${v}`)} fromStr={(v: string) => (!v ? undefined : `${config.currency}:${v}`)}
inputExtra={{ min: 0 }} inputExtra={{ min: 0 }}
> >
{children} {children}

View File

@ -223,9 +223,11 @@ export function useInstanceKYCDetails(): HttpResponse<
HttpResponseOk<MerchantBackend.Instances.AccountKycRedirects>, HttpResponseOk<MerchantBackend.Instances.AccountKycRedirects>,
RequestError<MerchantBackend.ErrorDetail> RequestError<MerchantBackend.ErrorDetail>
>([`/private/kyc`], fetcher, { >([`/private/kyc`], fetcher, {
refreshInterval: 5000, refreshInterval: 60 * 1000,
refreshWhenHidden: false, refreshWhenHidden: false,
revalidateOnFocus: false, revalidateOnFocus: false,
revalidateIfStale: false,
revalidateOnMount: false,
revalidateOnReconnect: false, revalidateOnReconnect: false,
refreshWhenOffline: false, refreshWhenOffline: false,
errorRetryCount: 0, errorRetryCount: 0,