From 64f2fef7a1801dce5042fa4ab94bbddf80993409 Mon Sep 17 00:00:00 2001 From: Supriya Mishra Date: Wed, 2 Mar 2022 02:38:32 +0530 Subject: [PATCH] - Bug: percent display was not loading due to missingn await --- packages/react-app/src/views/Home.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-app/src/views/Home.jsx b/packages/react-app/src/views/Home.jsx index 21fffed..9713d16 100644 --- a/packages/react-app/src/views/Home.jsx +++ b/packages/react-app/src/views/Home.jsx @@ -75,7 +75,7 @@ export default function Home({ useEffect(async () => { // Get an instance for each Stream contract for (let b in streams) { - const summary = resolveStreamSummary(streams[b].stream, mainnetProvider); + const summary = await resolveStreamSummary(streams[b].stream, mainnetProvider); copy[b].push(summary.cap); copy[b].percent = summary.percent; }