-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
completed the task #637
base: master
Are you sure you want to change the base?
completed the task #637
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/PeoplePage.tsx
Outdated
const data = await getPeople(); | ||
|
||
if (!data || data.length === 0) { | ||
setErrorType('type1'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great to use Enum instead of the hardcoded values
|
||
break; | ||
|
||
case 'sex': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
I have made the corrections. Also, I've checked the demo link and I'm sure that it's correct. I don't know why it won't work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it doesn't work for me too but I have no clue why. It seems to be correct, I'm out of ideas. |
DEMO LINK