From 6f966714e2e7fc0a48e558fb04f95ad29636be08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jessica=20=C3=89t=C3=A9?= Date: Sun, 21 Jan 2024 21:37:33 +0100 Subject: [PATCH] Add window reload to `startOver()` function This removes the need for the repeated calls to `generateImage()` when profile pictures are downloaded. --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 09a9a3b..9b34910 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -82,8 +82,8 @@ export default function Home() { } }; - const startOver = async () => { - setUserImageUrl(undefined); + const startOver = () => { + window.location.reload(); }; return (