From 11aa66d29dae72755c90f93702e446d28df1b7bb Mon Sep 17 00:00:00 2001 From: Leo Green <139697327+LeoBonjo@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:47:59 -0500 Subject: [PATCH] refactor: Consolidate donation modal code (#940) --- src/layout/header/DonationButton.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layout/header/DonationButton.tsx b/src/layout/header/DonationButton.tsx index cfc7c5b9..aad8a3b5 100644 --- a/src/layout/header/DonationButton.tsx +++ b/src/layout/header/DonationButton.tsx @@ -9,9 +9,8 @@ export const DonationButton = () => { const tooltip_title = t('donate_title') - const onClose = () => setOpen(false) const onOpen = () => setOpen(true) - + const onClose = () => setOpen(false) return ( <>