Skip to content

Commit

Permalink
modify style
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Dec 4, 2024
1 parent 7d820f5 commit 9860c1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/mobile/TrendsBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ export default {
}
for (let i = 0; i < finalDataItems.length; i++) {
if (maxTotalAmount > 0) {
if (maxTotalAmount > 0 && finalDataItems[i].totalAmount > 0) {
finalDataItems[i].percent = 100.0 * finalDataItems[i].totalAmount / maxTotalAmount;
} else {
finalDataItems[i].percent = 100.0;
finalDataItems[i].percent = 0.0;
}
}
Expand Down

0 comments on commit 9860c1d

Please sign in to comment.