Skip to content

Commit

Permalink
fixed update user bug (#2081) (#2082)
Browse files Browse the repository at this point in the history
Signed-off-by: arkajyotiMukherjee <[email protected]>
arkajyotiMukherjee authored Sep 15, 2020
1 parent 77a6ead commit b8b4ade
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -79,7 +79,12 @@ const CStepper: React.FC<CStepperProps> = ({ 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) => {
Original file line number Diff line number Diff line change
@@ -170,7 +170,7 @@ const ReceivedInvitations: React.FC = () => {
) : (
<TableRow>
<TableCell colSpan={2}>
<Typography align="center">No users available.</Typography>
<Typography align="center">No invitations received.</Typography>
</TableCell>
</TableRow>
)}

0 comments on commit b8b4ade

Please sign in to comment.