fixed ternary in contacts & on event submit scroll to top of page

This commit is contained in:
Toni L
2021-03-30 14:38:42 +03:00
parent dd419f0150
commit 5c5ac30fea
2 changed files with 2 additions and 2 deletions
+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 || blank_profile) : null}
role_fi={role.name_fi}
role_en={role.name_en}
/>
+1 -1
View File
@@ -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;