Skip to content

Commit

Permalink
default to jbchainid for pay
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Jan 21, 2025
1 parent e564016 commit 3303b1c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ import ExternalLink from 'components/ExternalLink'
import { JuiceModal } from 'components/modals/JuiceModal'
import { Formik } from 'formik'
import { useWallet } from 'hooks/Wallet'
import { JBChainId } from 'juice-sdk-react'
import { JBChainId, useJBChainId } from 'juice-sdk-react'
import Image from 'next/legacy/image'
import { useV4UserNftCredits } from 'packages/v4/contexts/V4UserNftCreditsProvider'
import { twMerge } from 'tailwind-merge'
import { helpPagePath } from 'utils/helpPagePath'
import { sepolia } from 'viem/chains'
import { ChainSelectSection } from './components/ChainSelectSection'
import { MessageSection } from './components/MessageSection'
import { ReceiveSection } from './components/ReceiveSection'
Expand All @@ -34,6 +33,7 @@ export const PayProjectModal: React.FC = () => {
} = usePayProjectModal()
const { formattedTotalAmount } = usePayAmounts()
const { chain: walletChain, changeNetworks, connect } = useWallet()
const jbChainId = useJBChainId()

const walletChainId = walletChain?.id ? parseInt(walletChain.id) : undefined

Expand All @@ -46,7 +46,7 @@ export const PayProjectModal: React.FC = () => {
},
userAcceptsTerms: false,
beneficiaryAddress: undefined,
chainId: walletChainId ?? sepolia.id,
chainId: walletChainId ?? jbChainId,
}}
validationSchema={validationSchema}
onSubmit={async (values, actions) => {
Expand Down

0 comments on commit 3303b1c

Please sign in to comment.