From 5af3723dbd9d156f1a7dd6c9b8ddf0b0d313b59d Mon Sep 17 00:00:00 2001 From: Jim Alvarez Date: Tue, 22 Jun 2021 23:41:14 -0500 Subject: [PATCH] fixed missing mentor id --- client/src/components/my-mentor-card.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/my-mentor-card.tsx b/client/src/components/my-mentor-card.tsx index 5b0c10e3..d4aceb63 100644 --- a/client/src/components/my-mentor-card.tsx +++ b/client/src/components/my-mentor-card.tsx @@ -225,7 +225,9 @@ export default function MyMentorCard(props: { data-cy="upload-file" type="file" accept="image/*" - onChange={(e) => uploadThumbnail("", e!.target!.files![0])} + onChange={(e) => + uploadThumbnail(props.mentorId, e!.target!.files![0]) + } />