Commit 1a68e6a0 authored by isstuev's avatar isstuev

review fix

parent a4160ef3
...@@ -37,10 +37,6 @@ export default function useAddressQuery({ hash, isEnabled = true }: Params): Add ...@@ -37,10 +37,6 @@ export default function useAddressQuery({ hash, isEnabled = true }: Params): Add
placeholderData: ADDRESS_INFO, placeholderData: ADDRESS_INFO,
refetchOnMount: false, refetchOnMount: false,
retry: (failureCount, error) => { retry: (failureCount, error) => {
if (error.status < 500) {
return false;
}
if (isRefetchEnabled) { if (isRefetchEnabled) {
return false; return false;
} }
...@@ -98,7 +94,7 @@ export default function useAddressQuery({ hash, isEnabled = true }: Params): Add ...@@ -98,7 +94,7 @@ export default function useAddressQuery({ hash, isEnabled = true }: Params): Add
}; };
}, },
placeholderData: [ GET_BALANCE ], placeholderData: [ GET_BALANCE ],
enabled: (apiQuery.isError || apiQuery.errorUpdateCount > 0) && !NO_RPC_FALLBACK_ERROR_CODES.includes(apiQuery.error?.status ?? 999), enabled: (apiQuery.isError || apiQuery.errorUpdateCount > 0) && !(apiQuery.error?.status && NO_RPC_FALLBACK_ERROR_CODES.includes(apiQuery.error?.status)),
retry: false, retry: false,
refetchOnMount: false, refetchOnMount: false,
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment