mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 13:26:27 +01:00
Allow multiple badge packets
This commit is contained in:
parent
2f0227f77a
commit
69e21b3e6e
@ -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());
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user