From d2764dd0476f21ab488d5bf8aed3c464aac753ea Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 2 Nov 2018 12:12:32 +0100 Subject: [PATCH] Fix #16 --- client/src/components/ProfileSheet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/ProfileSheet.js b/client/src/components/ProfileSheet.js index 1d81a4368..d2775451c 100644 --- a/client/src/components/ProfileSheet.js +++ b/client/src/components/ProfileSheet.js @@ -240,7 +240,8 @@ class ProfileSheet extends Component { componentWillMount () { if (this.defaultValuesSet === false) { - let authId = localStorage.getItem('authId') + let authUser = JSON.parse(localStorage.getItem('user')) + let authId = authUser.authId let userData = localStorage.getItem('loggedInUser') if (userData === 'undefined' || userData === null) { return }