fix: misc issues

This commit is contained in:
Jannat Patel
2024-09-18 08:43:16 +05:30
parent d1200d0fa9
commit d18ca232e3
16 changed files with 327 additions and 83 deletions

View File

@@ -420,7 +420,7 @@ const validateMandatoryFields = () => {
}
}
if (course.paid_course && (!course.course_price || !course.currency)) {
return 'Course price and currency are mandatory for paid courses'
return __('Course price and currency are mandatory for paid courses')
}
}
@@ -436,7 +436,7 @@ watch(
const validateFile = (file) => {
let extension = file.name.split('.').pop().toLowerCase()
if (!['jpg', 'jpeg', 'png', 'webp'].includes(extension)) {
return 'Only image file is allowed.'
return __('Only image file is allowed.')
}
}