Unverified Commit 9c058ef5 authored by Renato Becker's avatar Renato Becker Committed by GitHub

Changed the logic to display the department field on registration form. (#160)

parent 38fb86e0
No preview for this file type
......@@ -62,7 +62,6 @@ export const RegisterConnector = ({ ref, ...props }) => (
settings: {
nameFieldRegistrationForm: hasNameField,
emailFieldRegistrationForm: hasEmailField,
allowSwitchingDepartments: hasDepartmentField,
} = {},
theme: {
title,
......@@ -97,7 +96,7 @@ export const RegisterConnector = ({ ref, ...props }) => (
message={message}
hasNameField={hasNameField}
hasEmailField={hasEmailField}
hasDepartmentField={hasDepartmentField}
hasDepartmentField={departments && departments.some((dept) => dept.showOnRegistration)}
departments={departments.filter((dept) => dept.showOnRegistration)}
nameDefault={guestName}
emailDefault={guestEmail}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment