Skip to content

Commit 23b7128

Browse files
committed
Refactor description conditional for team page
1 parent 8759eb7 commit 23b7128

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/team/ExecCard.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ const ExecCard = ({ data, colour }) => {
1111
<div className="col-md-4">
1212
<div className="card-person">
1313
<div className={`${styles["card-person-style" + colour]} limit`}>
14-
{description === "" || description === undefined ? null : (
15-
<div className={styles["card-person-animation"]} />
14+
{description && (
15+
<>
16+
<div className={styles["card-person-animation"]} />
17+
<p className={styles["person-text"]}>{description}</p>
18+
</>
1619
)}
1720
<Image alt={name} src={image} className={styles["card-img-top"]} />
18-
<p className={styles["person-text"]}>{description}</p>
1921
</div>
2022
</div>
2123
<div className="card-body text-center pt-2 pb-4">

0 commit comments

Comments
 (0)