Skip to content

Commit

Permalink
OCM: fix blank cost field
Browse files Browse the repository at this point in the history
fixes #358
  • Loading branch information
johan12345 committed Sep 14, 2024
1 parent d28f14b commit 9d196f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ data class OCMChargepoint(
mediaItems?.mapNotNull { it.convert() },
null,
null,
cost?.let { Cost(descriptionShort = it) },
cost?.takeIf { it.isNotBlank() }.let { Cost(descriptionShort = it) },
dataProvider?.let { "© ${it.title}" + if (it.license != null) ". ${it.license}" else "" },
ChargepriceData(
addressInfo.countryISOCode(refData),
Expand Down

0 comments on commit 9d196f6

Please sign in to comment.