Skip to content

Commit

Permalink
invite user test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
patelradhika committed Nov 21, 2024
1 parent c8a7dee commit b5fdb29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/Register/Register.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ const Register = ({ history }) => {

useEffect(() => {
if (inviteTokenCheckData) {
email.setValue(inviteTokenCheckData.email || '');
organization_name.setValue(inviteTokenCheckData.organization_name || '');
email.setNewValue(inviteTokenCheckData.email || '');
organization_name.setNewValue(inviteTokenCheckData.organization?.name || '');
}
}, [inviteTokenCheckData]);

Expand Down
1 change: 1 addition & 0 deletions src/pages/UserManagement/UserManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const UserManagement = () => {
</Box>
<Route path={routes.CURRENT_USERS} component={Users} />
<Route path={routes.USER_GROUPS} component={UserGroups} />
<AddUser open={showAddUser} setOpen={setShowAddUser} />
</Box>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserManagement/forms/AddUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const AddUser = ({ open, setOpen }) => {

if (!_.isEmpty(userEmails)) {
const data = {
email_addresses: lowercaseUserEmails,
emails: lowercaseUserEmails,
};
inviteMutation(data);
}
Expand Down

0 comments on commit b5fdb29

Please sign in to comment.