Skip to content

Commit

Permalink
wp-104: phantom entry n ViewTab when user removed
Browse files Browse the repository at this point in the history
  • Loading branch information
van-go committed Oct 10, 2023
1 parent b31a09d commit bc71040
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ const AllocationsTeamViewModal = ({ isOpen, toggle }) => {
},
[dispatch]
);

const [selectedTab, setSelectedTab] = useState(0);
const handleTabChange = (e, newValue) => {
setSelectedTab(newValue);
if (selectedTab === 0){
setCard(null)
}
};
return (
<Modal isOpen={isOpen} toggle={toggle} size="lg" onClosed={resetCard}>
Expand Down

0 comments on commit bc71040

Please sign in to comment.