From ef6ba317d782ac8371b038368b1bd2f45df52058 Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Wed, 17 Jul 2024 14:59:22 +0100 Subject: [PATCH] refactor: stop modal opening automatically for Fusion Season 1 users --- .../Fusion/components/UserStats/CompleteSeasonOne.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/evm/src/pages/Fusion/components/UserStats/CompleteSeasonOne.tsx b/apps/evm/src/pages/Fusion/components/UserStats/CompleteSeasonOne.tsx index abb22339d..e91d37273 100644 --- a/apps/evm/src/pages/Fusion/components/UserStats/CompleteSeasonOne.tsx +++ b/apps/evm/src/pages/Fusion/components/UserStats/CompleteSeasonOne.tsx @@ -1,5 +1,5 @@ import { Button } from '@gobob/ui'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; import { useAccount, useIsContract } from '@gobob/wagmi'; import { WithdrawModal } from '../WithdrawModal'; @@ -10,12 +10,6 @@ const CompleteSeasonOne = () => { const [isWithdrawModalOpen, setIsWithdrawModalOpen] = useState(false); - useEffect(() => { - if (typeof isSmartAccount === 'boolean') { - setIsWithdrawModalOpen(true); - } - }, [isSmartAccount]); - return ( <>