🔨 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(); await user.reload();
const serializedUser = SerializeUser(user); return SerializeUser(user);
return serializedUser;
}; };
export default CreateUserService; export default CreateUserService;

View File

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

View File

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