fixed ternary in contacts & on event submit scroll to top of page
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 || blank_profile) : null}
|
||||
role_fi={role.name_fi}
|
||||
role_en={role.name_en}
|
||||
/>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user