Skip to content

Commit

Permalink
native token option fsater loading
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Jan 11, 2025
1 parent 873ccce commit aafc24f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/checkout/src/views/PaymentSelection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const PaymentSelectionContent = () => {
address: currencyAddress as Hex,
args: [userAddress, targetContractAddress],
query: {
enabled: !!userAddress
enabled: !!userAddress && !isNativeToken
}
})

Expand Down Expand Up @@ -132,7 +132,7 @@ export const PaymentSelectionContent = () => {
}
)

const isLoading = allowanceIsLoading || currencyBalanceIsLoading || isLoadingCurrencyInfo
const isLoading = (allowanceIsLoading && !isNativeToken) || currencyBalanceIsLoading || isLoadingCurrencyInfo

const isApproved: boolean = (allowanceData as bigint) >= BigInt(price) || isNativeToken

Expand Down

0 comments on commit aafc24f

Please sign in to comment.