mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
omiting selected field
This commit is contained in:
parent
1cdc798358
commit
2081f29f32
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue