Skip to content

Commit

Permalink
Merge pull request #63 from robocup-logistics/dswoboda/fix-negative-p…
Browse files Browse the repository at this point in the history
…oints

store: allow negative points
  • Loading branch information
TarikViehmann authored Apr 14, 2024
2 parents f352bd0 + 2213d30 commit 7df87b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/gameStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const useGameStore = defineStore('gameStore', () => {
});

// If the reward doesn't already exist, add it to the rewards array and log the event
if (!rewardExists && rewardArg.points > 0 && teamNameByColor.value(rewardArg.team) !== '') {
if (!rewardExists && rewardArg.points !== 0 && teamNameByColor.value(rewardArg.team) !== '') {
eventStore.addEvent({
icon: 'fa-trophy',
msg: `${teamNameByColor.value(rewardArg.team)} received ${rewardArg.points} points`,
Expand Down

0 comments on commit 7df87b4

Please sign in to comment.