omiting selected field

This commit is contained in:
Miodec 2022-09-03 14:38:34 +02:00
parent 1cdc798358
commit 2081f29f32

View file

@ -787,7 +787,8 @@ function buildRewardUpdates(
if (reward.type === "xp") {
totalXp += reward.item;
} else if (reward.type === "badge") {
newBadges.push(reward.item);
const item = _.omit(reward.item, "selected");
newBadges.push(item);
}
});