From 7a18fae9961a35ce0d09f7fdce79a784aa6498a4 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Fri, 27 May 2022 12:48:36 +0100 Subject: [PATCH] Fix missing shard balance response --- src/api/rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/rpc.ts b/src/api/rpc.ts index 5082464..c943e34 100644 --- a/src/api/rpc.ts +++ b/src/api/rpc.ts @@ -126,7 +126,7 @@ export const getAllBalance = (params: [string, "latest"]) => { } ), ]).then((arr) => { - return Promise.resolve(arr.map((item) => item.result)); + return Promise.resolve(arr.map((item) => item.result || '0x0')); }); };