Skip to content

Commit

Permalink
Fix category dropdown of mentor application to match with endpoint up…
Browse files Browse the repository at this point in the history
…date (sef-global#64)
  • Loading branch information
Madhawa97 authored Jan 4, 2024
1 parent aad1502 commit b3433db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MentorRegistrationPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const MentorRegistrationPage: React.FC = () => {
const categories = response.data.categories;
setFormData((prevData) => ({
...prevData,
categoryId: categories[0].id,
categoryId: categories[0].uuid,
}));
setCategories(categories);
})
Expand Down Expand Up @@ -208,8 +208,8 @@ const MentorRegistrationPage: React.FC = () => {
onChange={handleInputChange}
>
{categories.map(
(category: { id: string; category: string }) => (
<option key={category.id} value={category.id}>
(category: { uuid: string; category: string }) => (
<option key={category.uuid} value={category.uuid}>
{category.category}
</option>
)
Expand Down

0 comments on commit b3433db

Please sign in to comment.