diff --git a/src/features/metadata/metadataSlice.ts b/src/features/metadata/metadataSlice.ts index 6402264b..fefb17a5 100644 --- a/src/features/metadata/metadataSlice.ts +++ b/src/features/metadata/metadataSlice.ts @@ -57,10 +57,10 @@ export const fetchAllTokens = createAsyncThunk< state: RootState; } >("metadata/getKnownTokens", async (chainId, thunkApi) => { - const res = (await getKnownTokens(chainId)) + const res = await getKnownTokens(chainId); if (res.errors.length) { - console.log('Errors fetching metadata', res.errors) - return [] + console.log("Errors fetching metadata", res.errors); + return []; } else return res.tokens; });