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

pull/902/head
Simon Marquis 1 year ago
parent 4a5ec5bd82
commit 0ced769999

@ -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