Skip to content

Commit

Permalink
Re-add address check in user assets query
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Oct 31, 2024
1 parent 0e8830c commit 12f5711
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/__swaps__/screens/Swap/resources/assets/userAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export const userAssetsSetQueryData = ({ address, currency, userAssets, testnetM
async function userAssetsQueryFunction({
queryKey: [{ address, currency, testnetMode }],
}: QueryFunctionArgs<typeof userAssetsQueryKey>): Promise<ParsedAssetsDictByChain> {
if (!address) {
return {};
}
if (testnetMode) {
const { assets, chainIdsInResponse } = await fetchHardhatBalancesByChainId(address);
const parsedAssets: Array<{
Expand Down

0 comments on commit 12f5711

Please sign in to comment.