diff --git a/packages/checkout/widgets-lib/src/widgets/sale/views/FundWithSmartCheckout.tsx b/packages/checkout/widgets-lib/src/widgets/sale/views/FundWithSmartCheckout.tsx index fbcaea02a4..2ce1cb699b 100644 --- a/packages/checkout/widgets-lib/src/widgets/sale/views/FundWithSmartCheckout.tsx +++ b/packages/checkout/widgets-lib/src/widgets/sale/views/FundWithSmartCheckout.tsx @@ -32,7 +32,7 @@ export function FundWithSmartCheckout({ subView }: FundWithSmartCheckoutProps) { >(undefined); const [fundingRouteStepIndex, setFundingRouteStepIndex] = useState(0); const { - querySmartCheckout, fundingRoutes, smartCheckoutResult, collectionName, + querySmartCheckout, fundingRoutes, smartCheckoutResult, collectionName, fromTokenAddress, } = useSaleContext(); const { cryptoFiatDispatch } = useContext(CryptoFiatContext); @@ -41,9 +41,9 @@ export function FundWithSmartCheckout({ subView }: FundWithSmartCheckoutProps) { }; useEffect(() => { - if (subView !== FundWithSmartCheckoutSubViews.INIT) return; + if (subView !== FundWithSmartCheckoutSubViews.INIT || !fromTokenAddress) return; querySmartCheckout(); - }, [subView]); + }, [subView, fromTokenAddress]); useEffect(() => { if (!cryptoFiatDispatch || !smartCheckoutResult) return;