mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-21 17:59:50 +01:00
Fix crash
This commit is contained in:
parent
e7f447c185
commit
4cce12044d
@ -22,7 +22,7 @@ class FocusServiceViewModel(
|
||||
init {
|
||||
launchScoped {
|
||||
servicesRepository.observeServicesTicker()
|
||||
.map { it.first { it.id == serviceId } }
|
||||
.map { it.firstOrNull { it.id == serviceId } }
|
||||
.collect { service ->
|
||||
uiState.update { it.copy(service = service) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user