From abd7c56d0fb809ec3d9fef8961840fe0e928e57b Mon Sep 17 00:00:00 2001 From: naz_dou <41945483+nduchak@users.noreply.github.com> Date: Wed, 18 Sep 2019 13:34:00 +0200 Subject: [PATCH] fix(rpc): fix resolution rpc ops (#669) --- es/rpc/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es/rpc/client.js b/es/rpc/client.js index ea7db270c4..4303b30ef8 100644 --- a/es/rpc/client.js +++ b/es/rpc/client.js @@ -60,7 +60,7 @@ const RpcClient = stampit(AsyncInit, { const { result: { resolve, reject }, id } = data if (callbacks[id]) { - if (resolve) { + if (resolve !== undefined) { callbacks[id].resolve(resolve) } else if (reject) { callbacks[id].reject(reject)