Skip to content

Commit

Permalink
Show "Lead" when the lead jammer has an empty name. (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-brazil authored and frank-weinberg committed May 27, 2019
1 parent a293327 commit 0c8dd47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html/views/standard/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ function jammer(k, v) {
var starPass = isTrue(WS.state[prefix + "StarPass"]);
var inJam = isTrue(WS.state["ScoreBoard.InJam"]);

if (jammerName == null)
if (jammerName == null || jammerName == "") {
jammerName = (leadJammer && inJam) ? "Lead" : "";
if (pivotName == null)
pivotName = "";
}

var jn = !starPass ? jammerName : pivotName;
$(".Team" + id + " .Lead").toggleClass("HasLead", (leadJammer && !starPass));
Expand Down

0 comments on commit 0c8dd47

Please sign in to comment.