diff --git a/frontend/src/app/(routes)/(overview)/overview-components/OverviewPage.tsx b/frontend/src/app/(routes)/(overview)/overview-components/OverviewPage.tsx index 1e8e88e22..3c3b86782 100644 --- a/frontend/src/app/(routes)/(overview)/overview-components/OverviewPage.tsx +++ b/frontend/src/app/(routes)/(overview)/overview-components/OverviewPage.tsx @@ -77,7 +77,7 @@ const OverviewPage = ({ chainIDs }: { chainIDs: string[] }) => { }) ); } - }, [chainIDs]); + }, []); return (
diff --git a/frontend/src/app/(routes)/transfers/components/TransfersPage.tsx b/frontend/src/app/(routes)/transfers/components/TransfersPage.tsx index 806b12890..ed81abf77 100644 --- a/frontend/src/app/(routes)/transfers/components/TransfersPage.tsx +++ b/frontend/src/app/(routes)/transfers/components/TransfersPage.tsx @@ -27,6 +27,10 @@ const TransfersPage = ({ chainIDs }: { chainIDs: string[] }) => { const [tab, setTab] = useState(TRANSFERS_TAB1); const isAuthzMode = useAppSelector((state) => state.authz.authzModeEnabled); + const isFeegrantMode = useAppSelector( + (state) => state.feegrant.feegrantModeEnabled + ); + const changeTab = (tab: TransfersTab) => { if (tab === TRANSFERS_TAB1) setTab(TRANSFERS_TAB2); else setTab(TRANSFERS_TAB1); @@ -79,6 +83,20 @@ const TransfersPage = ({ chainIDs }: { chainIDs: string[] }) => { 'Multi transfer is not available for All networks!', }) ); + } else if (isAuthzMode) { + dispatch( + setError({ + type: 'error', + message: 'Swap is not suppported in Authz Mode', + }) + ); + } else if (isFeegrantMode) { + dispatch( + setError({ + type: 'error', + message: 'Swap is not suppported in Feegrant Mode', + }) + ); } else { setSelectedTab(tab); } diff --git a/frontend/src/custom-hooks/useInitBalances.ts b/frontend/src/custom-hooks/useInitBalances.ts index 0723dc602..39dcd175c 100644 --- a/frontend/src/custom-hooks/useInitBalances.ts +++ b/frontend/src/custom-hooks/useInitBalances.ts @@ -58,7 +58,7 @@ const useInitBalances = ({ chainIDs }: { chainIDs: string[] }) => { }) ); } - }, [chainIDs]); + }, []); }; export default useInitBalances;