Update appstate error message null check

pull/1789/head
TM 8 months ago
parent 9e02a3b3fa
commit b566b07b35

@ -133,9 +133,9 @@ class NiaAppState(
// Priority is given to Offline Error Message over other types
MessageData(type = MessageType.OFFLINE)
}
// Otherwise, Display first from error monitor list
// Otherwise, Display first from error monitor list if exists
else {
errors.first()
errors.firstOrNull()
}
}.stateIn(
scope = coroutineScope,

Loading…
Cancel
Save