Skip to content

Commit

Permalink
fix(app): check against all emails on multiple feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnwbr committed Dec 18, 2023
1 parent d61fabd commit 2219cfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ProposalStatusForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ export default function ProposalStatusForm({
(proposalDetails?.typeKey === 'STUDENT' &&
proposalDetails?.statusKey === 'MATCHED') ||
(proposalDetails?.receivedFeedbacks?.length > 0 &&
proposalDetails?.receivedFeedbacks?.user?.[0].userEmail ===
session?.user?.email) ||
proposalDetails?.receivedFeedbacks?.some(
(feedback) => feedback.userEmail === session?.user?.email
)) ||
providedFeedback
) {
return (
Expand Down

0 comments on commit 2219cfe

Please sign in to comment.