🔨 Removing Code Smells

This commit is contained in:
Ricardo Paes
2022-02-25 08:25:50 -03:00
parent 84bbe3afaa
commit 43f2771a93
3 changed files with 3 additions and 7 deletions

View File

@@ -68,9 +68,7 @@ const CreateUserService = async ({
await user.reload();
const serializedUser = SerializeUser(user);
return serializedUser;
return SerializeUser(user);
};
export default CreateUserService;

View File

@@ -58,9 +58,7 @@ const UpdateUserService = async ({
await user.reload();
const serializedUser = SerializeUser(user);
return serializedUser;
return SerializeUser(user);
};
export default UpdateUserService;

View File

@@ -248,7 +248,7 @@ const UserModal = ({ open, onClose, userId }) => {
<Can
role={loggedInUser.profile}
perform="user-modal:editQueues"
yes={() => (
yes={() => (!loading &&
<FormControl variant="outlined" margin="dense" className={classes.maxWidth} fullWidth>
<InputLabel>{i18n.t("userModal.form.whatsapp")}</InputLabel>
<Field