diff --git a/frontend/src/Editor/Inspector/EventManager.jsx b/frontend/src/Editor/Inspector/EventManager.jsx index 1eb9bf8371..3cdf997c16 100644 --- a/frontend/src/Editor/Inspector/EventManager.jsx +++ b/frontend/src/Editor/Inspector/EventManager.jsx @@ -483,7 +483,7 @@ export const EventManager = ({ options={[ { name: 'CSV', value: 'csv' }, { name: 'Text', value: 'plaintext' }, - { name: 'PDF', value: 'pdf' } + { name: 'PDF', value: 'pdf' }, ]} value={event.fileType ?? 'csv'} search={true} diff --git a/frontend/src/SettingsPage/SettingsPage.jsx b/frontend/src/SettingsPage/SettingsPage.jsx index 3d3a7bded1..8abb85df78 100644 --- a/frontend/src/SettingsPage/SettingsPage.jsx +++ b/frontend/src/SettingsPage/SettingsPage.jsx @@ -28,16 +28,10 @@ function SettingsPage(props) { const updateDetails = async () => { const firstNameMatch = firstName.match(/^ *$/); - const lastNameMatch = lastName.match(/^ *$/); - if (firstNameMatch !== null || lastNameMatch !== null) { - toast.error( - `${firstNameMatch !== null ? 'First name' : ''}${ - lastNameMatch !== null ? (firstNameMatch !== null ? ' and last name' : 'Last name') : '' - } can't be empty!`, - { - position: 'top-center', - } - ); + if (firstNameMatch !== null) { + toast.error(`First name can't be empty!`, { + position: 'top-center', + }); return; } diff --git a/server/src/dto/user.dto.ts b/server/src/dto/user.dto.ts index c53bdaee57..80f82b2fb6 100644 --- a/server/src/dto/user.dto.ts +++ b/server/src/dto/user.dto.ts @@ -12,7 +12,6 @@ export class CreateUserDto { @IsString() @IsOptional() - @IsNotEmpty() @Transform(({ value }) => sanitizeInput(value)) last_name: string;