Skip to content

Commit

Permalink
fix(front): add missing refacto for /mana
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoFgrx committed Jan 13, 2025
1 parent aa910ee commit b1cdce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ function loadInfo() {
});
return response
}).then(function (response){
if (response.mana_total == 0){
if (response.total == 0){
$('.cm-panel-mana-cost-div').hide(); // hide the mana cost div if mana is disabled
}
else {
let remaining = response.mana_total - response.mana_used
let remaining = response.total - response.used
$('#cm-challenge-mana-remaining').html(remaining);
}
});
Expand Down

0 comments on commit b1cdce3

Please sign in to comment.