Skip to content

Commit

Permalink
Merge pull request #1919 from CSCfi/CSCTTV-4011
Browse files Browse the repository at this point in the history
show dash character after affiliation activity start year, if end yea…
  • Loading branch information
konolak authored Jan 17, 2025
2 parents 4947ca8 + 4303580 commit 3f0f6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/services/model-util.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class ModelUtilsService {
}

getYearRange(startYear, endYear) {
return [startYear, endYear].filter((year) => year > 0).join(' - ');
return (startYear > 0) ? [startYear, endYear > 0 ? endYear : ''].join(' - ') : [];
}

getDateRange(startDate, endDate) {
Expand Down

0 comments on commit 3f0f6be

Please sign in to comment.