From 2bbd307cbc7912e2fa614c279f8599e35cd86d9d Mon Sep 17 00:00:00 2001 From: Nico Vermaas <vermaas@astron.nl> Date: Tue, 23 Feb 2021 14:15:13 +0100 Subject: [PATCH] adding username --- src/contexts/GlobalContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/GlobalContext.js b/src/contexts/GlobalContext.js index e9cfce1..4c6e277 100644 --- a/src/contexts/GlobalContext.js +++ b/src/contexts/GlobalContext.js @@ -10,7 +10,7 @@ function getUserName(api_host, setLoggedInUserName){ axios .get(profileUrl, {withCredentials: true}) .then((response) => { - setLoggedInUserName(response.data.results[0].user_name); + setLoggedInUserName(response.data.results[0].full_name); }) } -- GitLab