From ba92b3f6771007afe026b351645fc4185c547d8a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Jun 2021 12:10:08 +0200 Subject: [PATCH] lib/client: fix batch cleanup --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 41994c5..f3d1042 100644 --- a/lib/client.js +++ b/lib/client.js @@ -299,7 +299,7 @@ export default class Client extends EventTarget { // Delete after firing the message event so that handlers can access // the batch if (deleteBatch) { - this.batches.delete(name); + this.batches.delete(deleteBatch); } }