fixed the image ternary operator condition
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user