Skip to content

Commit

Permalink
refactor: stop modal opening automatically for Fusion Season 1 users
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt committed Jul 17, 2024
1 parent 221cc33 commit ef6ba31
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -10,12 +10,6 @@ const CompleteSeasonOne = () => {

const [isWithdrawModalOpen, setIsWithdrawModalOpen] = useState(false);

useEffect(() => {
if (typeof isSmartAccount === 'boolean') {
setIsWithdrawModalOpen(true);
}
}, [isSmartAccount]);

return (
<>
<Button fullWidth color='primary' onPress={() => setIsWithdrawModalOpen(true)}>
Expand Down

0 comments on commit ef6ba31

Please sign in to comment.