Display EventType properly

This commit is contained in:
Milos Kozak 2021-09-21 22:17:06 +02:00
parent d33f62b23d
commit a1a5fbaa4f

View file

@ -47,7 +47,7 @@ class TherapyEventDataPoint @Inject constructor(
}
override fun getLabel(): String? =
if (data.note != null) data.note
if (data.note.isNullOrBlank().not()) data.note
else translator.translate(data.type)
override fun getDuration(): Long = data.duration