diff --git a/src/components/forms/course/PublishedCourseForm.js b/src/components/forms/course/PublishedCourseForm.js index 4346a5e..5df22f8 100644 --- a/src/components/forms/course/PublishedCourseForm.js +++ b/src/components/forms/course/PublishedCourseForm.js @@ -20,7 +20,7 @@ const PublishedCourseForm = ({ course }) => { const [title, setTitle] = useState(course?.name || ''); const [summary, setSummary] = useState(course?.description || ''); const [content, setContent] = useState(course?.content || ''); - const [isPaidCourse, setIsPaidCourse] = useState(course?.price ? true : false); + const [isPaidCourse, setIsPaidCourse] = useState(course?.price && course?.price > 0 ? true : false); const [price, setPrice] = useState(course?.price || 0); const [coverImage, setCoverImage] = useState(course?.image || ''); const [topics, setTopics] = useState(course?.topics || ['']); @@ -163,7 +163,7 @@ const PublishedCourseForm = ({ course }) => {
Paid Course