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();
|
||||
|
||||
const serializedUser = SerializeUser(user);
|
||||
|
||||
return serializedUser;
|
||||
return SerializeUser(user);
|
||||
};
|
||||
|
||||
export default CreateUserService;
|
||||
|
||||
@@ -58,9 +58,7 @@ const UpdateUserService = async ({
|
||||
|
||||
await user.reload();
|
||||
|
||||
const serializedUser = SerializeUser(user);
|
||||
|
||||
return serializedUser;
|
||||
return SerializeUser(user);
|
||||
};
|
||||
|
||||
export default UpdateUserService;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user