fix(bag): don't close when the user switches pages (#5133)
This commit is contained in:
parent
99f3998941
commit
9a38c4e58d
@ -223,11 +223,6 @@ const Bag = () => {
|
|||||||
if (bagIsLocked && !isOpen) setModalIsOpen(true)
|
if (bagIsLocked && !isOpen) setModalIsOpen(true)
|
||||||
}, [bagIsLocked, isOpen])
|
}, [bagIsLocked, isOpen])
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setBagExpanded({ bagExpanded: false })
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [pathname])
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (transactionStateRef.current === TxStateType.Confirming) setBagStatus(BagStatus.PROCESSING_TRANSACTION)
|
if (transactionStateRef.current === TxStateType.Confirming) setBagStatus(BagStatus.PROCESSING_TRANSACTION)
|
||||||
if (transactionStateRef.current === TxStateType.Denied || transactionStateRef.current === TxStateType.Invalid) {
|
if (transactionStateRef.current === TxStateType.Denied || transactionStateRef.current === TxStateType.Invalid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user