Skip to content

Commit

Permalink
Merge pull request #1528 from slntopp/dev-accounts-pagination
Browse files Browse the repository at this point in the history
fix zero price
  • Loading branch information
SazukinPavel authored Mar 7, 2024
2 parents 10f33bd + 7935997 commit f88d4ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin-ui/src/components/widgets/instances-prices.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ watch(
instancesForPeriod.value.forEach((inst) => {
const key = inst?.type;
const price = Math.round(+getInstancePrice(inst)) || 0;
if(!price){
return
}
if (map[key]) {
map[key] = +map[key] + price;
} else {
Expand Down

0 comments on commit f88d4ce

Please sign in to comment.