Skip to content

Commit

Permalink
fix: fix how it decides if the buy is native or cross-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Feb 28, 2024
1 parent 65d1810 commit 6a8bea2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ export const BuyWithCryptoModal = (props: Props) => {

const renderBuyNowButton = useCallback(() => {
let onClick =
selectedToken?.symbol === 'MANA' && !route
selectedToken?.symbol === 'MANA' &&
selectedChain === ChainId.MATIC_MAINNET
? onBuyNatively
: handleCrossChainBuy

Expand Down

0 comments on commit 6a8bea2

Please sign in to comment.