mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
🔨 Removing Code Smells
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user