Fixed published course editing

This commit is contained in:
austinkelsay 2025-02-27 11:26:32 -06:00
parent 0c5ac0d942
commit eaa2b77e06

View File

@ -97,7 +97,7 @@ const PublishedCourseForm = ({ course }) => {
// Update course in database
await axios.put(`/api/courses/${course.d}`, {
price: isPaidCourse ? price : 0,
price: isPaidCourse ? Number(price) : 0,
lessons: lessons.map(lesson => ({
resourceId: lesson.d,
draftId: null,