Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinms committed Feb 15, 2016
1 parent b34082d commit 50d1d57
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ app.controller('GameInfoController', function ($scope, $timeout) {
$scope.filterPlayers = filterPlayers($scope.selectedGame)

$scope.$on('selectedGameWasUpdated', () => {
return $scope.timeRemaining = moment($scope.selectedGame.CurrentTurn.Expires).fromNow(true)
const timeRemaining = moment($scope.selectedGame.CurrentTurn.Expires).fromNow(true)
if (!timeRemaining) {
timeRemaining = '∞'
}
return $scope.timeRemaining = timeRemaining
})

$scope.downloadSave = function () {
Expand Down

0 comments on commit 50d1d57

Please sign in to comment.