From b8b4ade4bece99ffb9468a6aaf1cfb05ddedbefb Mon Sep 17 00:00:00 2001 From: Arkajyoti Mukherjee <32966391+arkajyotiMukherjee@users.noreply.github.com> Date: Tue, 15 Sep 2020 22:43:44 +0530 Subject: [PATCH] fixed update user bug (#2081) (#2082) Signed-off-by: arkajyotiMukherjee --- .../frontend/src/components/WelcomeModal/Stepper.tsx | 7 ++++++- .../TeammingTab/Invitation/ReceivedInvitations/index.tsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/litmus-portal/frontend/src/components/WelcomeModal/Stepper.tsx b/litmus-portal/frontend/src/components/WelcomeModal/Stepper.tsx index 88da942bbba..13c84db2cb6 100644 --- a/litmus-portal/frontend/src/components/WelcomeModal/Stepper.tsx +++ b/litmus-portal/frontend/src/components/WelcomeModal/Stepper.tsx @@ -79,7 +79,12 @@ const CStepper: React.FC = ({ handleModal }) => { 'Content-Type': 'application/json', Authorization: `Bearer ${getToken()}`, }, - body: JSON.stringify(info), + body: JSON.stringify({ + username: userData.username, + email: userData.email, + name: userData.name, + password: values.password, + }), }) .then((response) => response.json()) .then((data) => { diff --git a/litmus-portal/frontend/src/views/Settings/TeammingTab/Invitation/ReceivedInvitations/index.tsx b/litmus-portal/frontend/src/views/Settings/TeammingTab/Invitation/ReceivedInvitations/index.tsx index c351114353d..7bd1108837c 100644 --- a/litmus-portal/frontend/src/views/Settings/TeammingTab/Invitation/ReceivedInvitations/index.tsx +++ b/litmus-portal/frontend/src/views/Settings/TeammingTab/Invitation/ReceivedInvitations/index.tsx @@ -170,7 +170,7 @@ const ReceivedInvitations: React.FC = () => { ) : ( - No users available. + No invitations received. )}