From 4819d59936a0996feea55e0549d7ae67ab33ef04 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:56:12 -0500 Subject: [PATCH] Fix Invite Click --- src/components/DonateButton.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx index 5770964c..264360b1 100644 --- a/src/components/DonateButton.tsx +++ b/src/components/DonateButton.tsx @@ -51,9 +51,12 @@ export function InviteButton({ {...props} look={look} color={color} - onClick={() => openInviteModal("bFp57wxCkv").catch(() => - showToast("Invalid or expired invite"), - )} + onClick={async e => { + e.preventDefault(); + openInviteModal("5Xh2W87egW").catch(() => + showToast("Invalid or expired invite"), + ); + }} innerClassName="vc-donate-button" > Invite