diff --git a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx index 401714bfd..c384783df 100644 --- a/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx +++ b/examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx @@ -37,7 +37,7 @@ export default function Home() { }); } - (async () => { + async function setup() { if (!state.hasBeenSetup) { setDisplayText('Loading web worker...'); console.log('Loading web worker...'); @@ -103,7 +103,9 @@ export default function Home() { currentNum, }); } - })(); + }; + + setup(); }, []); // -------------------------------------------------------