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

Develop #1564

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

Develop #1564

wants to merge 3 commits into from

Conversation

maxmodrr
Copy link

@maxmodrr maxmodrr commented Dec 23, 2024

DEMO LINK

Same as with last task, I didn`t pass 2 tests, but I did others

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job 👍
Let's improve your code
If you need help with tests, pls feel free in the fe_chat

src/App.tsx Outdated
Comment on lines 46 to 48
.then(todosFromServer => {
setTodos(todosFromServer);
})

Choose a reason for hiding this comment

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

Suggested change
.then(todosFromServer => {
setTodos(todosFromServer);
})
.then(setTodos)

src/App.tsx Outdated
Comment on lines 116 to 118
// const isSuccess = results
// .filter(result => result.status === 'fulfilled')
// .map((_, index) => completedTodos[index].id);

Choose a reason for hiding this comment

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

Remove all comments

Suggested change
// const isSuccess = results
// .filter(result => result.status === 'fulfilled')
// .map((_, index) => completedTodos[index].id);

src/App.tsx Outdated

const USER_ID = 0;
function filterTodos(todos: Todo[], filterBy: string) {
const copy = [...todos];

Choose a reason for hiding this comment

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

Don't need to create a copy for todos, method filter returns new array

@maxmodrr
Copy link
Author

Good job 👍 Let's improve your code If you need help with tests, pls feel free in the fe_chat

I actually did, but did not get a helpful answer

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job! 👍

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