Skip to content

Commit

Permalink
fix: perioder list can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
helehar committed Jan 6, 2025
1 parent bf0a96d commit 32808af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/sykdig/utils/Title.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fun createTitleNasjonal(
avvist: Boolean,
): String {
if (avvist && perioder != null) return "Avvist papirsykmelding ${getFomTomTekst(perioder)}"
if (perioder == null) return "Papirsykmelding"
if (perioder.isNullOrEmpty()) return "Papirsykmelding"
return "Papirsykmelding ${getFomTomTekst(perioder)}"
}

Expand Down

0 comments on commit 32808af

Please sign in to comment.