UI Protocol: fix payload merge
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 9 Sep 2022 21:53:52 +0000 (23:53 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 9 Sep 2022 21:53:52 +0000 (23:53 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationWorkerBroadcastChannel.ts

index 31afa58ecf2aeb6893dde3a13363c633997ad6ac..00780f2f6ed0000c352b0d417ea567ddc2ea1382 100644 (file)
@@ -100,12 +100,10 @@ export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca
             StopTransactionRequest,
             StartTransactionResponse
           >(this.chargingStation, RequestCommand.STOP_TRANSACTION, {
-            meterStop:
-              requestPayload.meterStop ??
-              this.chargingStation.getEnergyActiveImportRegisterByTransactionId(
-                requestPayload.transactionId,
-                true
-              ),
+            meterStop: this.chargingStation.getEnergyActiveImportRegisterByTransactionId(
+              requestPayload.transactionId,
+              true
+            ),
             ...requestPayload,
           }),
       ],