diff --git a/frontend-vue/src/views/EndGameView.vue b/frontend-vue/src/views/EndGameView.vue index 882d7d0..d98b61b 100644 --- a/frontend-vue/src/views/EndGameView.vue +++ b/frontend-vue/src/views/EndGameView.vue @@ -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 = () => {