From d4db5bb00a2d3938ab8ef2496e64114b606ad105 Mon Sep 17 00:00:00 2001 From: Nick Taras Date: Fri, 14 Jul 2023 07:36:46 +0100 Subject: [PATCH] fix added to read attestations for ticket issuer in react life cycle --- ticket-issuer-url-website/src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ticket-issuer-url-website/src/App.js b/ticket-issuer-url-website/src/App.js index fab41c247..74506237b 100644 --- a/ticket-issuer-url-website/src/App.js +++ b/ticket-issuer-url-website/src/App.js @@ -82,7 +82,9 @@ function App() { tokenIssuers.forEach((issuer) => { tokens.push(...issuerTokens[issuer.collectionID].tokens); }); - setTokens(tokens); + setTimeout(() => { + setTokens(tokens); + }, 0); }); useEffect(() => {