X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fbroadcast-channel%2FUIServiceWorkerBroadcastChannel.ts;h=b66cd8a09d21ca9179361c8232babe6e7f1c76c3;hb=03e9d27705d90abb583fddcd0cc94b585110c633;hp=25d62962fbed2dcad29ec0fe6e0064fb1b0e0cdd;hpb=7671fa0be211e944f027ebd83f3a0ad64c2ef2d6;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/broadcast-channel/UIServiceWorkerBroadcastChannel.ts b/src/charging-station/broadcast-channel/UIServiceWorkerBroadcastChannel.ts index 25d62962..b66cd8a0 100644 --- a/src/charging-station/broadcast-channel/UIServiceWorkerBroadcastChannel.ts +++ b/src/charging-station/broadcast-channel/UIServiceWorkerBroadcastChannel.ts @@ -47,7 +47,7 @@ export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel { } else if ( this.responses.get(uuid)?.responsesReceived <= this.responses.get(uuid)?.responsesExpected ) { - this.responses.get(uuid).responsesReceived++; + ++this.responses.get(uuid).responsesReceived; this.responses.get(uuid)?.responses.push(responsePayload); } if (