Commit 76e3caa6 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: keep bag closed after manual close (#5429)

parent 7fa91d14
......@@ -69,7 +69,6 @@ export const useBag = create<BagState>()(
itemsInBag: [],
setItemsInBag: (items) =>
set(({ bagManuallyClosed }) => ({
bagManuallyClosed: items.length === 0 ? false : bagManuallyClosed,
itemsInBag: items,
})),
totalEthPrice: BigNumber.from(0),
......@@ -131,7 +130,6 @@ export const useBag = create<BagState>()(
)
)
return {
bagManuallyClosed: itemsCopy.length === 0 ? false : bagManuallyClosed,
itemsInBag: itemsCopy,
usedSweep: fromSweep,
bagExpanded: itemsCopy.length !== 0,
......
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