From 71300fa1aebd76d448cd810e32b7bfa5569afb29 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Mon, 14 Nov 2022 08:52:59 +0100
Subject: Check if variable has a value first

---
 app/src/views/UserInfo.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'app/src/views/UserInfo.vue')

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>
-- 
cgit v1.2.3-18-g5258

