From 9a38c4e58d977531e508b373fc92e050145d5f1f Mon Sep 17 00:00:00 2001 From: Jordan Frankfurt Date: Tue, 8 Nov 2022 18:47:01 -0600 Subject: [PATCH] fix(bag): don't close when the user switches pages (#5133) --- src/nft/components/bag/Bag.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nft/components/bag/Bag.tsx b/src/nft/components/bag/Bag.tsx index ee3abb7d94..35c4309bdd 100644 --- a/src/nft/components/bag/Bag.tsx +++ b/src/nft/components/bag/Bag.tsx @@ -223,11 +223,6 @@ const Bag = () => { if (bagIsLocked && !isOpen) setModalIsOpen(true) }, [bagIsLocked, isOpen]) - useEffect(() => { - setBagExpanded({ bagExpanded: false }) - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [pathname]) - useEffect(() => { if (transactionStateRef.current === TxStateType.Confirming) setBagStatus(BagStatus.PROCESSING_TRANSACTION) if (transactionStateRef.current === TxStateType.Denied || transactionStateRef.current === TxStateType.Invalid) {