mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-19 05:46: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));
|
for(const newBadgeCode of newBadgeCodes) newBadgeIds.push(parser.getBadgeId(newBadgeCode));
|
||||||
|
|
||||||
setBadgeCodes(newBadgeCodes);
|
setBadgeCodes(prevValue => [ ...prevValue, ...newBadgeCodes ]);
|
||||||
setBadgeIds(newBadgeIds);
|
setBadgeIds(prevValue => [ ...prevValue, ...newBadgeIds ]);
|
||||||
setActiveBadgeCodes(parser.getActiveBadgeCodes());
|
setActiveBadgeCodes(parser.getActiveBadgeCodes());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user