From 0b2b517f05e158fa9bdcac3364da2976e02ca126 Mon Sep 17 00:00:00 2001 From: Roger Cortez Date: Fri, 12 Jul 2024 14:50:12 +0800 Subject: [PATCH] Updated index.pug --- server/views/index.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/views/index.pug b/server/views/index.pug index f6145fa..ed331c8 100644 --- a/server/views/index.pug +++ b/server/views/index.pug @@ -8,7 +8,8 @@ block content if error == 'logoutError' .alert.alert-danger(role='alert') There was an error logging you out. Please try again. - if userInfo + if userInfo && userInfo.length > 0 p Welcome our GitHub guest: #{userInfo[0].github_username} //- Logout Button a.btn.btn-danger(href='/users/logout') Log Out +