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