From 5e71e8b6cee52c66cb36ccb67a538fb3e7a43f35 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 29 Jun 2020 09:25:19 +0900 Subject: [PATCH] Fix incorrect current user name, closes #840 --- frontend/components/organisms/layout/TheHeader.vue | 2 +- frontend/store/auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/organisms/layout/TheHeader.vue b/frontend/components/organisms/layout/TheHeader.vue index 56efb52d..d7e0ec9b 100644 --- a/frontend/components/organisms/layout/TheHeader.vue +++ b/frontend/components/organisms/layout/TheHeader.vue @@ -77,7 +77,7 @@ - {{ getUsername }} + {{ getUsername() }} mdi-logout diff --git a/frontend/store/auth.js b/frontend/store/auth.js index 7959b2f5..aff4a78e 100644 --- a/frontend/store/auth.js +++ b/frontend/store/auth.js @@ -26,7 +26,7 @@ export const getters = { isAuthenticated(state) { return state.token != null }, - getUsername() { + getUsername: () => () => { return localStorage.getItem('username') } }