Skip to content

Commit

Permalink
feat: clean up unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Feb 19, 2025
1 parent 9f4c226 commit f255b5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ export const goToPage = (value, pageCount, setCurrentPage) => {
};

export const findPropertyValue = (propName, researcher) => {
// The user object, confusingly, sometimes has a list of `properties` and sometimes has a list of `researcherProperties`.
const props = researcher.properties || researcher.researcherProperties;
const props = researcher.properties;
const prop = isNil(props) ?
null
: find({propertyKey: propName})(props);
Expand Down

0 comments on commit f255b5b

Please sign in to comment.