Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Fix code logic at building boot notification request
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
  • Loading branch information
Jérôme Benoit committed Mar 13, 2022
1 parent 3f94cab commit d312064
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/charging-station/ChargingStation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,12 +823,12 @@ export default class ChargingStation {
...(!Utils.isUndefined(this.stationInfo.firmwareVersion) && {
firmwareVersion: this.stationInfo.firmwareVersion,
}),
...(Utils.isUndefined(this.stationInfo.iccid) && { iccid: this.stationInfo.iccid }),
...(Utils.isUndefined(this.stationInfo.imsi) && { imsi: this.stationInfo.imsi }),
...(Utils.isUndefined(this.stationInfo.meterSerialNumber) && {
...(!Utils.isUndefined(this.stationInfo.iccid) && { iccid: this.stationInfo.iccid }),
...(!Utils.isUndefined(this.stationInfo.imsi) && { imsi: this.stationInfo.imsi }),
...(!Utils.isUndefined(this.stationInfo.meterSerialNumber) && {
meterSerialNumber: this.stationInfo.meterSerialNumber,
}),
...(Utils.isUndefined(this.stationInfo.meterType) && {
...(!Utils.isUndefined(this.stationInfo.meterType) && {
meterType: this.stationInfo.meterType,
}),
};
Expand Down

0 comments on commit d312064

Please sign in to comment.