Skip to content

Commit

Permalink
Add window reload to startOver() function
Browse files Browse the repository at this point in the history
This removes the need for the repeated calls to `generateImage()` when
profile pictures are downloaded.
  • Loading branch information
kohrVid committed Jan 31, 2024
1 parent c2510a0 commit 6f96671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export default function Home() {
}
};

const startOver = async () => {
setUserImageUrl(undefined);
const startOver = () => {
window.location.reload();
};

return (
Expand Down

0 comments on commit 6f96671

Please # to comment.