summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-11-14 08:52:59 +0100
committerSanto Cariotti <santo@dcariotti.me>2022-11-14 08:52:59 +0100
commit71300fa1aebd76d448cd810e32b7bfa5569afb29 (patch)
treeafe474c80ef563b62aa7596d8b5916cbb9ce53da
parent16b3de5c9fb538280da185c4b98d841b83566cf6 (diff)
Check if variable has a value first
-rw-r--r--app/src/views/UserInfo.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/views/UserInfo.vue b/app/src/views/UserInfo.vue
index f317cbd..04259da 100644
--- a/app/src/views/UserInfo.vue
+++ b/app/src/views/UserInfo.vue
@@ -2,7 +2,7 @@
<ion-page>
<m6-header />
<ion-content :fullscreen="true">
- <div>
+ <div v-if="me">
<p>ID: {{ me.id }}</p>
<p>Name: {{ me.name }}</p>
<p>Email: {{ me.email }}</p>