added sort to signup forms

This commit is contained in:
ojakoo
2021-05-30 14:16:49 +03:00
parent 25a8f0fa4b
commit bd4d483920
+1 -1
View File
@@ -99,7 +99,7 @@ const EventPageView: React.FC<EventPageViewProps> = ({ event }) => {
</p>
{/* We may have multiple signup forms. Generate own Button for each one */}
<SignupButtons>
{event.signupForm.map((sf) => (
{event.signupForm.sort((a, b) => (a.title_fi.localeCompare(b.title_fi))).map((sf) => (
<Link key={sf.id} to={`/signup/${sf.id}`}>
<Button data-e2e="signup-button" buttonStyle="filled" onClick={noop}>
{isFi ? sf.title_fi : sf.title_en}