Skip to content
Permalink
Browse files

show dash if no games played since last edit

  • Loading branch information...
Manuel-777 committed Feb 8, 2019
1 parent 203da69 commit 041ccb907af9caabe2815f20ffb306c9293b363b
Showing with 6 additions and 1 deletion.
  1. +6 −1 window_main/decks.js
@@ -203,7 +203,12 @@ function open_decks_tab() {
d.style.opacity = 0.6;

colClass = getWinrateClass(wr.lastEdit);
d.innerHTML = `Since last edit: <span class="${colClass}_bright">${Math.round(wr.lastEdit*100)}%</span>`;
if (wr.lastEdit == 0) {
d.innerHTML = `Since last edit: -</span>`;
}
else {
d.innerHTML = `Since last edit: <span class="${colClass}_bright">${Math.round(wr.lastEdit*100)}%</span>`;
}
flr.appendChild(d);

wrTotalWins += wr.wins;

0 comments on commit 041ccb9

Please sign in to comment.
You can’t perform that action at this time.