From ea6feaf0d4ae6bbc782c46c5ec41f54afd97c020 Mon Sep 17 00:00:00 2001 From: Mimi Immutable Date: Wed, 23 Oct 2024 14:07:23 +1100 Subject: [PATCH] test --- .../src/widgets/add-funds/AddFundsWidget.tsx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/checkout/widgets-lib/src/widgets/add-funds/AddFundsWidget.tsx b/packages/checkout/widgets-lib/src/widgets/add-funds/AddFundsWidget.tsx index 0c18cb3cb9..a517fd6000 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-funds/AddFundsWidget.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-funds/AddFundsWidget.tsx @@ -126,19 +126,19 @@ export default function AddFundsWidget({ })(); }, []); - useEffect(() => { - if (!checkout) return; - (async () => { - if (!(await checkout.isSwapAvailable())) { - viewDispatch({ - payload: { - type: ViewActions.UPDATE_VIEW, - view: { type: AddFundsWidgetViews.GEO_BLOCK_ERROR }, - }, - }); - } - })(); - }, [checkout]); + // useEffect(() => { + // if (!checkout) return; + // (async () => { + // if (!(await checkout.isSwapAvailable())) { + // viewDispatch({ + // payload: { + // type: ViewActions.UPDATE_VIEW, + // view: { type: AddFundsWidgetViews.GEO_BLOCK_ERROR }, + // }, + // }); + // } + // })(); + // }, [checkout]); useEffect(() => { if (!squid || !chains || !fromProvider || fetchingBalances.current) return;