Skip to content

Commit

Permalink
capitalisation and punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
akinwale committed Apr 27, 2023
1 parent 32a70aa commit fe4fa44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Profile/Contacts/ContactMethodsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const defaultProps = {
const ContactMethodsPage = (props) => {
const loginNames = _.keys(props.loginList);

// Sort the login names by placing the one corresponding to the default contact method as the first item before displaying the contact methods
// the default contact method is determined by checking against the session email (the current login)
// Sort the login names by placing the one corresponding to the default contact method as the first item before displaying the contact methods.
// The default contact method is determined by checking against the session email (the current login).
const sortedLoginNames = _.sortBy(loginNames, loginName => (props.loginList[loginName].partnerUserID === props.session.email ? 0 : 1));

const loginMenuItems = _.map(sortedLoginNames, (loginName) => {
Expand Down

0 comments on commit fe4fa44

Please sign in to comment.