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 // Priority is given to Offline Error Message over other types
MessageData(type = MessageType.OFFLINE) MessageData(type = MessageType.OFFLINE)
} }
// Otherwise, Display first from error monitor list // Otherwise, Display first from error monitor list if exists
else { else {
errors.first() errors.firstOrNull()
} }
}.stateIn( }.stateIn(
scope = coroutineScope, scope = coroutineScope,

Loading…
Cancel
Save