From 7e6fb22b248c9189e6e3cfaa7b3917c5e648fab4 Mon Sep 17 00:00:00 2001 From: Toni L Date: Tue, 30 Mar 2021 14:12:11 +0300 Subject: [PATCH] fixed the image ternary operator condition --- src/components/CommitteeContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CommitteeContainer.tsx b/src/components/CommitteeContainer.tsx index e29b0c8..398e314 100644 --- a/src/components/CommitteeContainer.tsx +++ b/src/components/CommitteeContainer.tsx @@ -47,7 +47,7 @@ const CommitteeContainer: React.FC = ({ committee }) => phone={representative.phone_number} email={representative.email} // conditional image for dev - image={(committee.name_en === "Board" && representative.image) ? representative.image : blank_profile} + image={(committee.name_en === "Board" && representative.image) ? representative.image : (committee.name_en != "Board") ? null : blank_profile} role_fi={role.name_fi} role_en={role.name_en} />