diff --git a/src/components/Widget/index.tsx b/src/components/Widget/index.tsx index bfaea38a81..6c873b1e24 100644 --- a/src/components/Widget/index.tsx +++ b/src/components/Widget/index.tsx @@ -57,7 +57,7 @@ export default function Widget({ onDefaultTokenChange, onReviewSwapClick, }: WidgetProps) { - const { connector, provider } = useWeb3React() + const { connector, provider, chainId } = useWeb3React() const locale = useActiveLocale() const theme = useWidgetTheme() const { inputs, tokenSelector } = useSyncWidgetInputs({ @@ -168,7 +168,7 @@ export default function Widget({ locale={locale} theme={theme} width={width} - // defaultChainId is excluded - it is always inferred from the passed provider + defaultChainId={chainId} onConnectWalletClick={onConnectWalletClick} provider={provider} onSwitchChain={onSwitchChain}