diff --git a/src/features/swap/SwapForm.tsx b/src/features/swap/SwapForm.tsx index 02a4761..f4afd9d 100644 --- a/src/features/swap/SwapForm.tsx +++ b/src/features/swap/SwapForm.tsx @@ -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 {