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 ? (