From d312064afb8df22dbe11a626d9b64c9ae12d4770 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 13 Mar 2022 12:07:25 +0100 Subject: [PATCH] Fix code logic at building boot notification request MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 5b8247ea..f9175803 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -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, }), }; -- 2.34.1