course NaN fix

remotes/origin/hasaccess
Sanasol 8 years ago
parent 7cf0f4fd86
commit 42e33cd634
  1. 6
      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: {

Loading…
Cancel
Save