diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index fde01f6e..c46fb75e 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -602,7 +602,7 @@ this.courseSyncHook = false; this.courseSaving = false; }); - }, 2000); + }, 3000); } }, mounted() { @@ -663,10 +663,10 @@ }, displayPrice: { get: function () { - return this.course.is_paid ? parseFloat(this.course.price) : 0; + return this.course.is_paid ? (this.course.price || 0) : 0; }, set: function (value) { - this.course.price = value; + this.course.price = value || 0; } }, categorySelect: {