fix: typo in condition check at remote start transaction
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 3 Aug 2023 18:34:12 +0000 (20:34 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 3 Aug 2023 18:34:12 +0000 (20:34 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 61c74a600e30604542e53a12b1cf08498570b308..75f63fee53e6206ad10ad0febd73af999d1d43ba 100644 (file)
@@ -955,7 +955,8 @@ export class OCPP16IncomingRequestService extends OCPPIncomingRequestService {
             chargingStation,
             transactionConnectorId,
             chargingProfile,
-          ) === true) ??
+            // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
+          ) === true) ||
         !chargingProfile
       ) {
         connectorStatus.transactionRemoteStarted = true;