Skip to content

Commit

Permalink
Avoid NaN in UI if values is missing (evcc-io#11642)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jan 13, 2024
1 parent 90c0f96 commit e7b78db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions assets/js/components/LoadpointSessionInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ export default {
mixins: [formatter],
props: {
id: Number,
sessionEnergy: Number,
sessionCo2PerKWh: Number,
sessionPricePerKWh: Number,
sessionPrice: Number,
sessionCo2PerKWh: { type: Number, default: 0 },
sessionPricePerKWh: { type: Number, default: 0 },
sessionPrice: { type: Number, default: 0 },
currency: String,
sessionSolarPercentage: Number,
sessionSolarPercentage: { type: Number, default: 0 },
chargeRemainingDurationInterpolated: Number,
chargeDurationInterpolated: Number,
tariffCo2: Number,
Expand Down

0 comments on commit e7b78db

Please sign in to comment.