Commit 2ea70d18 authored by Jack Short's avatar Jack Short Committed by GitHub

fix: remove last item behavior from bag (#5409)

parent 448090b5
......@@ -134,6 +134,7 @@ export const useBag = create<BagState>()(
bagManuallyClosed: itemsCopy.length === 0 ? false : bagManuallyClosed,
itemsInBag: itemsCopy,
usedSweep: fromSweep,
bagExpanded: itemsCopy.length !== 0,
}
})
},
......@@ -161,6 +162,7 @@ export const useBag = create<BagState>()(
didOpenUnavailableAssets: false,
isLocked: false,
bagManuallyClosed: false,
bagExpanded: false,
}
else return {}
}),
......
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