Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #134 from seiyria/fix-upcoming
Browse files Browse the repository at this point in the history
fix(upcoming): the view will no longer break if there are no stations…
  • Loading branch information
seiyria authored Oct 19, 2016
2 parents 7506875 + acdaf84 commit 91b58c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controllers/tournaments/upcomingCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ site.controller('upcomingController', ($scope, $mdMedia, $state, $stateParams, $
$scope.getString = (id, idx) => TournamentInformation.getString($scope.strings, id, idx);
$scope.noRender = TournamentInformation.noRender;
$scope.getMatchIdString = TournamentInformation.getMatchIdString;
$scope.getStation = (match) => $scope.ref.stations[TournamentInformation.getMatchStationIdString(match)];
$scope.getStation = (match) => ($scope.ref.stations || {})[TournamentInformation.getMatchStationIdString(match)];

const hasAnyZeroes = (match) => _.any(match.p, p => p === 0);

Expand Down

0 comments on commit 91b58c1

Please sign in to comment.