More strict boolean check
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Sep 2022 19:50:47 +0000 (21:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Sep 2022 19:50:47 +0000 (21:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index d09e69a1576b64412154e71df2778d157b2315d4..ce2f1d2b3ec1b12b1469504ed77f1e54c1e1d8b4 100644 (file)
@@ -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({