Skip to content

Commit

Permalink
Henry li/solve the runtime error of the eye icon (#471)
Browse files Browse the repository at this point in the history
* Add a column for the judgement state -- whether a team has been judged

* Add the search function to the drop down menu

* typo change

* delete useless import in components/judges/schedule.tsx

* Solved the runtime error of eye icon in manage applications in  organizer
  • Loading branch information
JihengLi authored Apr 16, 2024
1 parent db1d8c1 commit a068d11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/Organizer/ApplicantsTab/ApplicantsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,13 @@ export const ApplicantsTab = () => {
visible={isAppModalOpen}
onOk={handleAppCloseModal}
onCancel={handleAppCloseModal}>
{selectedApplicant &&
Object.entries(selectedApplicant.application!)
{selectedApplicant?.application ? (
Object.entries(selectedApplicant.application)
.filter(([field, _]) => field in APPLICATION_KEY_MAP)
.map(createSingleApplicantEntry)}
.map(createSingleApplicantEntry)
) : (
<p>Application details are not available.</p>
)}
</Modal>
)}
{isCheckinModalOpen && (
Expand Down

0 comments on commit a068d11

Please sign in to comment.