From 00de2efb77dd335884e9d3181940273d1c8d46e9 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 23 Mar 2023 22:16:16 +0000 Subject: [PATCH] fix: reorder --- .../app/pages/dashboard/misc/SupportBanner.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/app/pages/dashboard/misc/SupportBanner.tsx b/client/src/app/pages/dashboard/misc/SupportBanner.tsx index 2627c1004..b34121f9e 100644 --- a/client/src/app/pages/dashboard/misc/SupportBanner.tsx +++ b/client/src/app/pages/dashboard/misc/SupportBanner.tsx @@ -20,6 +20,15 @@ export default function SupportBanner({ user }: { user: UserDocument }) { localStorage.setItem("SHOW_SUPPORT_TACHI", `${show}`); }, [show]); + // thank you + if (user.isSupporter) { + return ( +
+
❤️❤️❤️ Thank you for supporting {TachiConfig.name}. ❤️❤️❤️
+
+ ); + } + if (!data) { return <>; } @@ -37,15 +46,6 @@ export default function SupportBanner({ user }: { user: UserDocument }) { return <>; } - // thank you - if (user.isSupporter) { - return ( -
-
❤️❤️❤️ Thank you for supporting {TachiConfig.name}. ❤️❤️❤️
-
- ); - } - if (!show) { return (