diff --git a/components/searchInput.vue b/components/searchInput.vue index f6d27756..6baa3674 100644 --- a/components/searchInput.vue +++ b/components/searchInput.vue @@ -21,7 +21,7 @@ diff --git a/layouts/default.vue b/layouts/default.vue index 9d87afad..a20f764e 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -128,9 +128,7 @@ export default { currrentUser: 'auth/currentUser' }), courseNameUppercase() { - if (this.courseTag) { - return this.courseTag.toUpperCase() - } else return false + return this.courseTag && this.courseTag.toUpperCase() } }, methods: { diff --git a/middleware/course.js b/middleware/course.js index d68336f6..4319d1e4 100644 --- a/middleware/course.js +++ b/middleware/course.js @@ -2,8 +2,6 @@ import { Toast } from 'buefy/dist/components/toast' export default function({ store, redirect }) { if (!store.state.courseTag) { Toast.open('Selecione um Curso') - // eslint-disable-next-line no-console - console.log('trying') redirect('/') } } diff --git a/pages/activeStudents.vue b/pages/activeStudents.vue index a5714fcd..6b635ffe 100644 --- a/pages/activeStudents.vue +++ b/pages/activeStudents.vue @@ -7,7 +7,6 @@