fix: fix uiServer configuration section sanity checks
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 1 Feb 2024 11:03:58 +0000 (12:03 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 1 Feb 2024 11:03:58 +0000 (12:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index bd740997ff77a41e8a933909630ba45a23d019cc..a4262770e57bbe690a4e7900625636c457095f14 100644 (file)
@@ -243,7 +243,7 @@ export class Bootstrap extends EventEmitter {
   private async restart (): Promise<void> {
     await this.stop()
     Configuration.getConfigurationSection<UIServerConfiguration>(ConfigurationSection.uiServer)
-      .enabled === false && this.uiServer?.stop()
+      .enabled !== true && this.uiServer?.stop()
     this.initializedCounters = false
     await this.start()
   }
@@ -440,7 +440,7 @@ export class Bootstrap extends EventEmitter {
       if (
         this.numberOfConfiguredChargingStations === 0 &&
         Configuration.getConfigurationSection<UIServerConfiguration>(ConfigurationSection.uiServer)
-          .enabled === true
+          .enabled !== true
       ) {
         console.error(
           chalk.red(