diff --git a/frontend/src/components/item-card/item-card.jsx b/frontend/src/components/item-card/item-card.jsx index 472bc9b..901f7b2 100644 --- a/frontend/src/components/item-card/item-card.jsx +++ b/frontend/src/components/item-card/item-card.jsx @@ -75,16 +75,16 @@ const ItemCard = ({ startDate, endDate, presenterName, - certificateLink, - finished, + certificateLink, + finished, level, cost = 50000, purchaseState = 0, // 0 -> not purchased, 1 -> in cart, 2 -> purchased hasProject = false, prerequisites, syllabus, - remainingCapacity = 50, - capacity = 50, + remainingCapacity = 95, + capacity = 95, isFull = false, addToCalendarLink, onClickAddToCart = () => {}, diff --git a/frontend/src/pages/workshops/useWorkshopsPage.js b/frontend/src/pages/workshops/useWorkshopsPage.js index 0e30e38..12315a0 100644 --- a/frontend/src/pages/workshops/useWorkshopsPage.js +++ b/frontend/src/pages/workshops/useWorkshopsPage.js @@ -83,7 +83,6 @@ export default function useWorkshopsPage() { useEffect(() => { if (workshopsData == null || presentationsData == null || teachersData == null || presenterData == null) return; - let parsedData = workshopsData .concat(presentationsData) .map((workshop) => { @@ -98,7 +97,7 @@ export default function useWorkshopsPage() { }); } else { workshop.presenters.forEach((item) => { - presenters.push(presenterData.filter((el) => el.id === item)?.[0]?.name); + presenters.push(teachersData.filter((el) => el.id === item)?.[0]?.name); }); } item.presenters = presenters;