From 197ce17af179258296a7211c49b26cf82ca6a327 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 7 Feb 2021 10:14:03 -0800 Subject: [PATCH] Fix load of empty users --- packages/webapp/src/client/rest-client/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webapp/src/client/rest-client/index.ts b/packages/webapp/src/client/rest-client/index.ts index 129e196f..5889b8e3 100644 --- a/packages/webapp/src/client/rest-client/index.ts +++ b/packages/webapp/src/client/rest-client/index.ts @@ -20,8 +20,8 @@ export default class RestClient implements Client { ).then(response => { const account = response.data; success({ - lastName: account.lastName, - firstName: account.fistName, + lastName: account.lastName ? account.lastName : '', + firstName: account.fistName ? account.fistName : '', email: account.email, }); }).catch(error => {