@@ -29,7 +29,7 @@ export const PayWithCrypto = ({
2929 const [ showMore , setShowMore ] = useState ( false )
3030 const { enableSwapPayments = true , enableMainCurrencyPayment = true } = settings
3131
32- const { chain, currencyAddress, price, skipNativeBalanceCheck } = settings
32+ const { chain, currencyAddress, price, skipNativeBalanceCheck, nativeTokenAddress } = settings
3333 const { address : userAddress } = useAccount ( )
3434 const { clearCachedBalances } = useClearCachedBalances ( )
3535 const network = findSupportedNetwork ( chain )
@@ -47,7 +47,7 @@ export const PayWithCrypto = ({
4747 accountAddresses : userAddress ? [ userAddress ] : [ ] ,
4848 contractStatus : ContractVerificationStatus . ALL ,
4949 contractWhitelist : [ currencyAddress ] ,
50- omitNativeBalances : skipNativeBalanceCheck ?? false
50+ omitNativeBalances : skipNativeBalanceCheck ? true : false
5151 } ,
5252 omitMetadata : true ,
5353 page : { pageSize : 40 }
@@ -145,7 +145,7 @@ export const PayWithCrypto = ({
145145 < div className = "flex flex-col justify-center items-center gap-2 w-full" >
146146 { coins . map ( coin => {
147147 if ( compareAddress ( coin . currencyAddress , currencyAddress ) ) {
148- const isNative = compareAddress ( coin . currencyAddress , zeroAddress )
148+ const isNative = compareAddress ( coin . currencyAddress , nativeTokenAddress || zeroAddress )
149149 const isNativeBalanceCheckSkipped = isNative && skipNativeBalanceCheck
150150
151151 return (
0 commit comments