Widen `isNotEmpty` with `isNotBlank` to potentially catch blank values

pull/1837/head
Simon Marquis 2 years ago
parent 5503aba044
commit bd6fc86158

@ -267,7 +267,7 @@ fun NewsResourceMetaData(
) {
val formattedDate = dateFormatted(publishDate)
Text(
if (resourceType.isNotEmpty()) {
if (resourceType.isNotBlank()) {
stringResource(R.string.card_meta_data_text, formattedDate, resourceType)
} else {
formattedDate

Loading…
Cancel
Save