added sort to signup forms
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user