diff --git a/src/career/components/JobDetails.tsx b/src/career/components/JobDetails.tsx index 1ce82b7d..031a088b 100644 --- a/src/career/components/JobDetails.tsx +++ b/src/career/components/JobDetails.tsx @@ -17,13 +17,13 @@ import ApplyButton from './ApplyButton'; /** * @summary formats the deadline from ISO format to Date Month Year - * @return the formated deadline as a string or the string "Ikke spesifisert" if deadline is null + * @return the formated deadline as a string or the string "Snarest" if deadline is null */ -export const formatDeadline = (deadline: string): string => { +export const formatDeadline = (deadline?: string): string => { if (deadline) { return DateTime.fromISO(deadline).toFormat('d MMM y'); } - return 'Ikke spesifisert'; + return 'Snarest'; }; interface IProps { @@ -71,7 +71,7 @@ const JobDetails: FC = ({ opportunity }) => (

Nøkkelinformasjon

Type: {opportunity.employment.name}

Sted: {formatLocations(opportunity.location.map((loc) => loc.name))}

-

Frist: {opportunity.deadline ? formatDeadline(opportunity.deadline) : 'snarest'}

+

Frist: {formatDeadline(opportunity.deadline)}

{opportunity.rolling_admission && (

Søknader vurderes fortløpende