Skip to content

Commit

Permalink
fix issue with NAN for people in debt
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed May 27, 2016
1 parent c91460b commit bce3b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chezbetty/static/js/chezbetty-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ function calculate_wallofshame_fee_percent (balance, total) {
}
}

fee_percent = (fee / total) * 100;
if (total > 0) {
fee_percent = (fee / total) * 100;
}

if (fee_percent < 0.1) {
fee_percent = 0.1;
Expand Down

0 comments on commit bce3b1d

Please sign in to comment.