Skip to content

Commit

Permalink
Fix not allowing 100% Nat Gas pie chart
Browse files Browse the repository at this point in the history
See 5948 N Broadway
  • Loading branch information
vkoves committed Aug 28, 2024
1 parent c259a3c commit d251fc9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/templates/BuildingDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,13 @@ export default class BuildingDetails extends Vue {
calculateEnergyBreakdown(): void {
const energyBreakdown = [];
energyBreakdown.push({
label: 'Electricity',
value: parseFloat(this.building.ElectricityUse.toString()),
color: EnergyBreakdownColors.Electricity,
});
if (this.building.ElectricityUse as unknown as number > 0) {
energyBreakdown.push({
label: 'Electricity',
value: parseFloat(this.building.ElectricityUse.toString()),
color: EnergyBreakdownColors.Electricity,
});
}
if (this.building.NaturalGasUse as unknown as number > 0) {
energyBreakdown.push({
Expand Down

0 comments on commit d251fc9

Please sign in to comment.