Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution #1131

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Solution #1131

wants to merge 13 commits into from

Conversation

ab3MN
Copy link

@ab3MN ab3MN commented Nov 19, 2024

Copy link

@StasSokolov1 StasSokolov1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done, let's improve your code a bit more!

<ErrorNotification dataCy="peopleLoadingError" errorMessage={error} />
);

case isPeopleEmpthy:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isPeopleEmpthy => isPeopleEmpty

Comment on lines 7 to 8
? b.name.toLowerCase().localeCompare(a.name.toLowerCase())
: a.name.toLowerCase().localeCompare(b.name.toLowerCase());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRY, It looks like we can move this fragment into a separate helper functionb.name.toLowerCase().localeCompare(a.name.toLowerCase())

Comment on lines 16 to 17
// console.log({ currentParams, paramsToUpdate });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove redundant comment please

Copy link

@StasSokolov1 StasSokolov1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants