fixed the image ternary operator condition

This commit is contained in:
Toni L
2021-03-30 14:13:46 +03:00
parent 7e6fb22b24
commit 53b9ca9248
+1 -1
View File
@@ -47,7 +47,7 @@ const CommitteeContainer: React.FC<CommitteeContainerProps> = ({ committee }) =>
phone={representative.phone_number}
email={representative.email}
// conditional image for dev
image={(committee.name_en === "Board" && representative.image) ? representative.image : (committee.name_en != "Board") ? null : 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}
/>