From 72debcfdcd98913a51d5d3e85a22c5c72247c396 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 25 Jul 2019 12:15:23 -0700 Subject: [PATCH] fix: cleanup vars Co-Authored-By: Shane --- src/RequestManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RequestManager.ts b/src/RequestManager.ts index d51aa44..978a042 100644 --- a/src/RequestManager.ts +++ b/src/RequestManager.ts @@ -118,7 +118,7 @@ class RequestManager { results.forEach((response) => { const id = typeof response.id === "string" ? response.id : response.id.toString(); - const promiseForResult = this.requests[response.id]; + const promiseForResult = this.requests[id]; if (promiseForResult === undefined) { throw new Error( `Received an unrecognized response id: ${response.id}. Valid ids are: ${Object.keys(this.requests)}`,