From c1949971068768ef442ae6a3a64d1f4555d38397 Mon Sep 17 00:00:00 2001 From: ymekuria Date: Sun, 22 Sep 2024 21:37:23 -0700 Subject: [PATCH] refactor(index.page.tsx): change setup function declaration to arrow function for consistency and readability --- examples/zkapps/04-zkapp-browser-ui/ui/src/pages/index.page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3e34eb243..bd574e4ad 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 @@ -28,7 +28,7 @@ export default function Home() { useEffect(() => { - async function setup() { + const setup = async () => { try { if (!state.hasBeenSetup) { setDisplayText('Loading web worker...');