Skip to content

Commit

Permalink
[Stats] fix NaN (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 authored Oct 3, 2024
1 parent 4d27274 commit bd70f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/stats/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

// percentage helper
const percentage = (portion, total) =>
((portion / total) * 100).toFixed(2) + "%";
(total > 0 ? ((portion / total) * 100).toFixed(2) : 0) + "%";

// *** actual stats fetching ***
// performer of scenes with any StashID
Expand Down

0 comments on commit bd70f0b

Please sign in to comment.