From 6d1939e7ecbc4f1c1d687ec383ce050e37f7ee07 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 9 Oct 2024 10:05:44 -0400 Subject: [PATCH] fixed no skip asset found error --- packages/state/query/queries/token.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/state/query/queries/token.ts b/packages/state/query/queries/token.ts index e98a57acf..c7f80e7ac 100644 --- a/packages/state/query/queries/token.ts +++ b/packages/state/query/queries/token.ts @@ -62,7 +62,7 @@ export const fetchTokenInfo = async ( denomOrAddress, }) ) - .catch(() => undefined), + .catch(() => null), ]) if (asset) { @@ -88,9 +88,9 @@ export const fetchTokenInfo = async ( // If Skip API does not have the info, check if Skip API has the source // if it's different. This has happened before when Skip does not have // an IBC asset that we were able to reverse engineer the source for. - const sourceAsset = await queryClient.fetchQuery( - skipQueries.asset(queryClient, source) - ) + const sourceAsset = await queryClient + .fetchQuery(skipQueries.asset(queryClient, source)) + .catch(() => null) if (sourceAsset) { return {