Skip to content

Commit

Permalink
Fix: identification form update call
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 14, 2023
1 parent 79dab34 commit 475551d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/identification-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const IdentificationForm = () => {
}
const members = await Promise.all(
formData.map(async (member, index) => {
member["student_id_url"] = await uploadIdCard(team.name, member.name, idFiles[index]);
member["student_id_url"] =
member["student_id_url"] || (await uploadIdCard(team.name, member.name, idFiles[index]));
return member;
})
);
Expand Down

0 comments on commit 475551d

Please sign in to comment.