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

Commit

Permalink
fix(tournaments): bring back some backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Oct 16, 2015
1 parent 0858626 commit 0e65287
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/controllers/tournaments/inProgressCtrl.js
Expand Up @@ -45,11 +45,13 @@ site.controller('inProgressController', ($scope, $timeout, EnsureLoggedIn, Sideb

const determineTemplate = (options) => {
const hash = { singles: 'duel', doubles: 'duel', groupstage: 'groupstage', ffa: 'ffa', masters: 'masters' };
if(!options.type && options.last) return 'duel';
return hash[options.type];
};

const determineTournament = (options) => {
const hash = { singles: Duel, doubles: Duel, groupstage: GroupStage, ffa: FFA , masters: Masters };
if(!options.type && options.last) return Duel;
return hash[options.type];
};

Expand Down

0 comments on commit 0e65287

Please sign in to comment.