From: Jérôme Benoit Date: Tue, 6 Sep 2022 19:50:47 +0000 (+0200) Subject: More strict boolean check X-Git-Tag: v1.1.72~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=da8629bbd5d41967111841f79bbc31e070b7b8b0;p=e-mobility-charging-stations-simulator.git More strict boolean check Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index d09e69a1..ce2f1d2b 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -440,7 +440,7 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer if (Utils.isUndefined(configuration.visible) === true) { configuration.visible = true; } - if (!configuration.visible) { + if (configuration.visible === false) { continue; } configurationKey.push({