fix: keep bag closed after manual close (#5429)
This commit is contained in:
parent
7fa91d1442
commit
76e3caa659
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user