diff --git a/src/pages/private/user/messages/index.jsx b/src/pages/private/user/messages/index.jsx index 2335de0..e654fe3 100644 --- a/src/pages/private/user/messages/index.jsx +++ b/src/pages/private/user/messages/index.jsx @@ -51,9 +51,7 @@ class PeopleCards extends Component { filterPeople = (e) => { const people = this.state.persons.filter( (person) => - person.name - .toLowerCase() - .search(e.target.value.trim().toLowerCase()) !== -1, + person.name.toLowerCase().search(e.target.value.trim().toLowerCase()) !== -1, ); this.setState({ people, NoSearchResults: !people.length }); }; @@ -74,10 +72,7 @@ class PeopleCards extends Component { return this.setState({ people: persons.filter((e) => { if (sectionSelect !== 'ALL') { - return ( - e.department === input.value && - e.section === sectionSelect - ); + return e.department === input.value && e.section === sectionSelect; } return e.department === input.value; }), @@ -101,10 +96,7 @@ class PeopleCards extends Component { return this.setState({ people: persons.filter((e) => { if (departmentSelect !== 'ALL') { - return ( - e.section === input.value && - e.department === departmentSelect - ); + return e.section === input.value && e.department === departmentSelect; } return e.section === input.value; }), @@ -113,13 +105,8 @@ class PeopleCards extends Component { }; render() { - const { - ProgressBar, - departments, - sections, - people, - NoSearchResults, - } = this.state; + const { ProgressBar, departments, sections, people, NoSearchResults } = + this.state; return ( <> diff --git a/src/pages/private/user/profile/profileCard/socialCard.jsx b/src/pages/private/user/profile/profileCard/socialCard.jsx index 0c3b541..2f601da 100644 --- a/src/pages/private/user/profile/profileCard/socialCard.jsx +++ b/src/pages/private/user/profile/profileCard/socialCard.jsx @@ -17,14 +17,7 @@ const PersonalCard = () => { snapchat: '', }); - const { - email, - phone, - instagram, - linkedin, - facebook, - snapchat, - } = socialHandles; + const { email, phone, instagram, linkedin, facebook, snapchat } = socialHandles; useEffect(() => { const fetchUserData = async () => { @@ -44,7 +37,7 @@ const PersonalCard = () => { linkedin: data.socialHandles.linkedin, snapchat: data.socialHandles.snapchat, }); - console.log('socialss', data) + console.log('socialss', data); } catch (ex) { if (ex.response && ex.response.status === 400) { TimerAlert('Error', ex.response.data, 'error'); @@ -90,10 +83,7 @@ const PersonalCard = () => {
{email && ( - + )} {phone && ( { return { - userId: Joi - .number() + userId: Joi.number() .error(() => { return { message: 'Please enter a valid enrollment number',