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 #1133

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

solution #1133

wants to merge 3 commits into from

Conversation

Oleksii-Bidiak
Copy link

@Oleksii-Bidiak Oleksii-Bidiak commented Jul 8, 2024

Copy link

@lerastarynets lerastarynets left a comment

Choose a reason for hiding this comment

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

I can now add comment whose fields consist of white spaces only, pls fix

emptyPost

src/App.tsx Outdated
No posts yet
</div>
{!isLoadingPosts &&
userPosts.length === 0 &&

Choose a reason for hiding this comment

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

Suggested change
userPosts.length === 0 &&
!userPosts.length &&

PLS DO THE SAME FOR ALL SUCH CASES IN THE PROJECT

const [values, setValues] = useState<FormValues>(defaultValues);
const [errors, setErrors] = useState<FormErrors>({});
const [isLoading, setIsLoading] = useState<boolean>(false);
// const [isFormValid, setIsFormValid] = useState(false);

Choose a reason for hiding this comment

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

pls remove redundant comments

<a href="mailto:[email protected]" data-cy="CommentAuthor">
Misha Hrynko
</a>
{comments.length > 0 && !isCommentsLoading && (

Choose a reason for hiding this comment

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

Suggested change
{comments.length > 0 && !isCommentsLoading && (
{!!comments.length && !isCommentsLoading && (

PLS DO THE SAME FOR ALL SUCH CASES IN THE PROJECT

<a href="mailto:[email protected]" data-cy="CommentAuthor">
Misha Hrynko
</a>
{comments.length > 0 && !isCommentsLoading && (

Choose a reason for hiding this comment

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

Still not changed:
image

Copy link
Author

Choose a reason for hiding this comment

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

Sorry

Choose a reason for hiding this comment

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

It's ok 🙂

Copy link

@TarasHoliuk TarasHoliuk left a comment

Choose a reason for hiding this comment

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

Well done! ✔️

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.

3 participants