Skip to content

Commit 8a0f819

Browse files
committed
refactor: isNativeToken only relies on tokenAddress
1 parent 5284132 commit 8a0f819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/curve-ui-kit/src/queries/token-balance.query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function useTokenBalance({ chainId, userAddress, tokenAddress }: FieldsOf
5353
const config = useConfig()
5454

5555
const isEnabled = chainId != null && userAddress != null && tokenAddress != null
56-
const isNativeToken = isEnabled && isNative({ tokenAddress })
56+
const isNativeToken = tokenAddress != null && isNative({ tokenAddress })
5757

5858
const nativeBalance = useBalance({
5959
...(isEnabled ? getNativeBalanceQueryOptions(config, { chainId, userAddress }) : {}),

0 commit comments

Comments
 (0)