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

https://evelina-moore.github.io/react_person/ #1565

Closed
wants to merge 4 commits into from
Closed

https://evelina-moore.github.io/react_person/ #1565

wants to merge 4 commits into from

Conversation

evelina-moore
Copy link

Comment on lines +6 to +12
let partnerText;

if (isMarried) {
partnerText = `${partnerName} is my ${genderPartner}`;
} else {
partnerText = 'I am not married';
}

Choose a reason for hiding this comment

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

you can simplify this logic using the ternary operator

@evelina-moore evelina-moore deleted the develop branch August 17, 2023 16:40
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