Преглед изворни кода

بهبود پنل کاربر

hgh пре 1 година
родитељ
комит
87df8f5fc2

+ 1 - 1
src/components/Widgets/Classroom/UserClassroomCard/UserClassroomCard.vue

@@ -112,7 +112,7 @@ export default {
     getClassroomTitleCaption(title) {
       const match = title.match(/^(.*?)\s*\((.*?)\)$/)
       if (match) {
-        const insideParenthesis = match[2]
+        const insideParenthesis = match[2].split('-')[0].trim()
         return `${insideParenthesis}`
       } else {
         return ''