Skip to content

Commit

Permalink
Hotfix: Build issue with time subtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick Behringer committed Mar 18, 2024
1 parent c19dec7 commit ea636cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend-vue/src/views/EndGameView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const lastGame: {
const timesShuffled = lastGame.history.filter(el => el === 'shuffle').length;
const cardsDrawen = lastGame.history.filter(el => el.startsWith('+')).length;
const cardsPlayed = lastGame.history.filter(el => el.startsWith('>')).length;
const timeDiff = Math.ceil((new Date(lastGame.endTime) - new Date(lastGame.startTime)) / 1000); //in ms
const timeDiff = Math.ceil((new Date(lastGame.endTime).getTime() - new Date(lastGame.startTime).getTime()) / 1000); //in ms
console.log(lastGame, timeDiff)
const navigate = () => {
Expand Down

0 comments on commit ea636cc

Please sign in to comment.