Skip to content

Commit

Permalink
change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
desevoker committed Aug 23, 2023
1 parent 0c1bab7 commit 9cb805e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Person/Person.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Person = ({ person }) => {
<section className="Person">
<h2 className="Person__name">{`My name is ${name}`}</h2>

{!!age && (
{Boolean(age) && (
<p className="Person__age">
{`I am ${age}`}
</p>
Expand Down

0 comments on commit 9cb805e

Please sign in to comment.