ui/round code tweak

This commit is contained in:
Thibault Duplessis 2017-03-15 16:05:11 +01:00
parent 80b3d2f821
commit 427613a0b2

View file

@ -28,7 +28,7 @@ module.exports = {
var user = player.user;
if (d.relay) return relayUser(d.relay[player.color]);
var perf = user ? user.perfs[d.game.perf] : null;
var rating = player.rating ? player.rating : (perf ? perf.rating : null);
var rating = player.rating ? player.rating : (perf && perf.rating);
if (user) {
var fullName = (user.title ? user.title + ' ' : '') + user.username;
var connecting = !player.onGame && ctrl.vm.firstSeconds && user.online;