Skip to content

Commit

Permalink
refactor: add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
denviljclarke committed Sep 4, 2023
1 parent beef65e commit ea4ff09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/swap/SwapForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function SubmitButton() {
const dispatch = useAppDispatch()

const isAccountReady = address && isConnected
const isOnCelo = chains.some((chn) => chn.id === chain.id)
const isOnCelo = chains.some((chn) => chn.id === chain?.id)

const switchToNetwork = async () => {
try {
Expand Down

0 comments on commit ea4ff09

Please sign in to comment.