Skip to content

Commit

Permalink
new structure for proposal dropdown title (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoalzate authored May 21, 2024
1 parent 3ae443e commit 800e6fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/berlin/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,17 @@ const SelectRegistrationDropdown = ({
registrationFields: GetRegistrationFieldsResponse | null | undefined;
mode: 'edit' | 'create';
index: number;
groupName: string;
groupName?: string;
}) => {
if (mode === 'create') {
return 'Create a new proposal';
}

return `${index}. [${groupName}]: ${getRegistrationTitle({
return `${index}. ${getRegistrationTitle({
multipleRegistrationData,
registration,
registrationFields,
})}`;
})} ${groupName ? `[${groupName}]` : ''}`;
};

return (
Expand All @@ -332,7 +332,7 @@ const SelectRegistrationDropdown = ({
registrationFields,
mode: form.mode,
index: idx + 1,
groupName: form.group?.name || 'Solo',
groupName: form.group?.name,
}),
}))}
placeholder="Select a Proposal"
Expand Down

0 comments on commit 800e6fd

Please sign in to comment.