Skip to content

Commit

Permalink
Remove optional chaining from game deleted check
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Ying <[email protected]>
  • Loading branch information
srietkerk and kimprice authored Aug 14, 2023
1 parent b8160d3 commit 9b673d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk/src/Models/Kiosk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class Kiosk {
if (!game?.userAdded) {
game.userAdded = true;
}
if (!game?.deleted) {
if (game && !game.deleted) {
this.games.push(game);
}
}
Expand Down

0 comments on commit 9b673d1

Please sign in to comment.