From 61fbea095ce95f5dbd724ce488f51e484de85da5 Mon Sep 17 00:00:00 2001 From: "Yeyang (Justin) Sun" Date: Sun, 18 Feb 2024 13:33:46 +1030 Subject: [PATCH] fix(admin): minor fix (#61) --- src/app/(account)/settings/page.tsx | 2 +- src/app/admin/MemberForm.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/(account)/settings/page.tsx b/src/app/(account)/settings/page.tsx index 4008b05f..badfc082 100644 --- a/src/app/(account)/settings/page.tsx +++ b/src/app/(account)/settings/page.tsx @@ -39,7 +39,7 @@ const verifyMembershipPayment = async (clerkId: string) => { } // Set expiry date to be the January 1st of the following year - const expiryDate = updateMemberExpiryDate(clerkId, 'clerkId'); + const expiryDate = await updateMemberExpiryDate(clerkId, 'clerkId'); // Delete key from Redis since it is no longer needed await redisClient.del(`payment:membership:${clerkId}`); diff --git a/src/app/admin/MemberForm.tsx b/src/app/admin/MemberForm.tsx index 891c8539..2a8456c9 100644 --- a/src/app/admin/MemberForm.tsx +++ b/src/app/admin/MemberForm.tsx @@ -18,7 +18,7 @@ function MemberDetail({ member }: { member: Member }) { }, }); const handlePaymentChange = () => { - updatePayment.trigger({ id: member.id, paid: !member.paid }); + updatePayment.trigger({ id: member.id, paid: !payment }); }; return ( @@ -58,7 +58,6 @@ export default function MemberForm({ members }: { members: Member[] }) { displayOptionStr={getMemberStr} placeholder="Search for a member by email or name..." notFoundMessage="No members found" - className="grow" />
{selectedMember ? (