Commit 9a38c4e5 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

fix(bag): don't close when the user switches pages (#5133)

parent 99f39989
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment