Skip to content

Solution#2230

Open
Palfinger2002 wants to merge 1 commit into
mate-academy:masterfrom
Palfinger2002:develop
Open

Solution#2230
Palfinger2002 wants to merge 1 commit into
mate-academy:masterfrom
Palfinger2002:develop

Conversation

@Palfinger2002

Copy link
Copy Markdown

@Palfinger2002

Copy link
Copy Markdown
Author

Have a problem with tests about data-cy="TodoTitleField"
Знімок екрана 2026-05-26 о 17 24 47 (2)

Comment thread src/App.tsx
setNewTitle('');
} catch (error) {
setErrorMessage(Errors.UnableToAdd);
//

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can remove these slashes

Comment thread src/App.tsx
return <UserWarning />;
}

const visibleTodos = todos.filter(todo => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can make pure function for visibleTodos, and move this function outside component (for example, in helpers.ts)

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