Ver código fonte

:recycle: Small refactor to address rendering issues

tabs-content
tomit4 3 anos atrás
pai
commit
c9c77a0b1d
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1
    2
      frontend/src/views/HomeView.vue

+ 1
- 2
frontend/src/views/HomeView.vue Ver arquivo

@@ -1,6 +1,5 @@
1 1
 <template lang="pug">
2 2
 main.view--home
3
-    p {{ cP._profile.user_name }}
4 3
     article.w-flex.sm-column.md-row.align-center
5 4
         template(v-if='isLoading')
6 5
             w-spinner(bounce)
@@ -69,7 +68,7 @@ export default {
69 68
     },
70 69
     computed: {
71 70
         cP() {
72
-            return currentProfile
71
+            return currentProfile ? currentProfile : null
73 72
         },
74 73
         cards() {
75 74
             let initialCards = currentProfile.queue.map(qProfile =>

Carregando…
Cancelar
Salvar