diff --git a/app/styles/play/level/duel-stats-view.sass b/app/styles/play/level/duel-stats-view.sass index 7d0cbb1ec..71eed7ad2 100644 --- a/app/styles/play/level/duel-stats-view.sass +++ b/app/styles/play/level/duel-stats-view.sass @@ -15,7 +15,8 @@ width: 500px height: 60px - display: flex + display: none + //display: flex // set if present flex-direction: row &:hover diff --git a/app/views/play/level/DuelStatsView.coffee b/app/views/play/level/DuelStatsView.coffee index 47466a695..2a989c659 100644 --- a/app/views/play/level/DuelStatsView.coffee +++ b/app/views/play/level/DuelStatsView.coffee @@ -49,6 +49,7 @@ module.exports = class DuelStatsView extends CocoView super() for player in @players @buildAvatar player.heroID, player.team + @$el.css 'display', 'flex' # Show it buildAvatar: (heroID, team) -> @avatars ?= {} diff --git a/server/queues/scoring/getTwoGames.coffee b/server/queues/scoring/getTwoGames.coffee index 36b7115cc..50ee267bd 100644 --- a/server/queues/scoring/getTwoGames.coffee +++ b/server/queues/scoring/getTwoGames.coffee @@ -37,8 +37,8 @@ getRandomSessions = (user, callback) -> # Determine whether to play a random match, an internal league match, or an external league match. # Only people in a league will end up simulating internal league matches (for leagues they're in) except by dumb chance. # If we don't like that, we can rework sampleByLevel to have an opportunity to switch to internal leagues if the first session had a league affiliation. - leagueIDs = user.get('clans') or [] - #leagueIDs = leagueIDs.concat user.get('courseInstances') or [] + leagueIDs = user?.get('clans') or [] + #leagueIDs = leagueIDs.concat user?.get('courseInstances') or [] leagueIDs = (leagueID + '' for leagueID in leagueIDs) # Make sure to fetch them as strings. return sampleByLevel callback unless leagueIDs.length and Math.random() > 1 / leagueIDs.length leagueID = _.sample leagueIDs