Skip to content

Commit

Permalink
fix(admin): minor fix (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 authored Feb 18, 2024
1 parent e8d1225 commit 61fbea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(account)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
3 changes: 1 addition & 2 deletions src/app/admin/MemberForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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"
/>
<div className="flex justify-center">
{selectedMember ? (
Expand Down

0 comments on commit 61fbea0

Please sign in to comment.