Allow multiple badge packets

This commit is contained in:
Bill 2022-11-21 12:29:01 -05:00
parent 2f0227f77a
commit 69e21b3e6e

View File

@ -66,8 +66,8 @@ const useInventoryBadgesState = () =>
for(const newBadgeCode of newBadgeCodes) newBadgeIds.push(parser.getBadgeId(newBadgeCode));
setBadgeCodes(newBadgeCodes);
setBadgeIds(newBadgeIds);
setBadgeCodes(prevValue => [ ...prevValue, ...newBadgeCodes ]);
setBadgeIds(prevValue => [ ...prevValue, ...newBadgeIds ]);
setActiveBadgeCodes(parser.getActiveBadgeCodes());
});