Skip to content

Commit

Permalink
refactor: hide locked slayer
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Nov 21, 2023
1 parent 7972e39 commit 6a3d636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion views/sections/stats/slayer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function formatSlayerCoinsSpent(coins) {
<div class="slayer-containers narrow-info-container-wrapper">
<% const slayerNames = Object.keys(calculated.slayer.slayers).sort((a, b) => slayerOrder.indexOf(a) - slayerOrder.indexOf(b));
for (const slayerName of slayerNames) {
const slayer = calculated.slayer.slayers[slayerName]; %>
const slayer = calculated.slayer.slayers[slayerName];
if (slayer.level.currentLevel === 0) {
continue;
} %>
<div class="narrow-info-container slayer">
<div class="narrow-info-header">
Expand Down

0 comments on commit 6a3d636

Please sign in to comment.