From: Jérôme Benoit Date: Mon, 3 Oct 2022 11:32:55 +0000 (+0200) Subject: More strict boolean checks X-Git-Tag: v1.1.75~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c7e8e0a2239500b34af95e2e46f6993470ea2f02;p=e-mobility-charging-stations-simulator.git More strict boolean checks Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 7b98ed35..959b6c2c 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -707,9 +707,9 @@ export default class ChargingStation { ): Promise { const transactionId = this.getConnectorStatus(connectorId).transactionId; if ( - this.getBeginEndMeterValues() && - this.getOcppStrictCompliance() && - !this.getOutOfOrderEndMeterValues() + this.getBeginEndMeterValues() === true && + this.getOcppStrictCompliance() === true && + this.getOutOfOrderEndMeterValues() === false ) { // FIXME: Implement OCPP version agnostic helpers const transactionEndMeterValue = OCPP16ServiceUtils.buildTransactionEndMeterValue(