diff --git a/src/components/CommitteeContainer.tsx b/src/components/CommitteeContainer.tsx index bba6d94..850edd0 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 : (committee.name_en !== "Board") ? null : blank_profile} + image={(committee.name_en === "Board") ? (representative.image || blank_profile) : null} role_fi={role.name_fi} role_en={role.name_en} /> diff --git a/src/pages/admin/events/[id].tsx b/src/pages/admin/events/[id].tsx index d316fa8..91e763c 100644 --- a/src/pages/admin/events/[id].tsx +++ b/src/pages/admin/events/[id].tsx @@ -198,7 +198,7 @@ const EventCreatePage: NextPage = () => { }, [id]); const onSubmit = async (data: any) => { - window.scrollTo(0,0) + window.scrollTo(0, 0); try { const payload = data.formData; payload.signup_id = payload.signupForm;