refactor: factor out default OCPP request params value
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / UIHttpServer.ts
index a831446b9c5f93d0e8bd3cd55543dc79957b88bc..ccafb0845df0307a2577e34b68f5d4e8742ff18f 100644 (file)
@@ -126,7 +126,7 @@ export class UIHttpServer extends AbstractUIServer {
                 )
               )
               .then((protocolResponse: ProtocolResponse) => {
-                if (Utils.isNullOrUndefined(protocolResponse)) {
+                if (!Utils.isNullOrUndefined(protocolResponse)) {
                   this.sendResponse(protocolResponse);
                 }
               })