Skip to content

Commit

Permalink
- Bug: percent display was not loading due to missingn await
Browse files Browse the repository at this point in the history
  • Loading branch information
supriyaamisshra committed Mar 1, 2022
1 parent f9e12e8 commit 64f2fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-app/src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 64f2fef

Please sign in to comment.