Skip to content

Commit

Permalink
fix: detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Jun 12, 2024
1 parent 7cebb97 commit 00cc985
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,11 @@ class WireActivityViewModel @Inject constructor(
viewModelScope.launch(dispatchers.get().io()) {
currentScreenManager.get().observeCurrentScreen(this)
.flatMapLatest {
if (it.isGlobalDialogAllowed()) observeNewClients.get().invoke()
else flowOf(NewClientResult.Empty)
if (it.isGlobalDialogAllowed()) {
observeNewClients.get().invoke()
} else {
flowOf(NewClientResult.Empty)
}
}
.collect {
val newClientDialog = NewClientsData.fromUseCaseResul(it)
Expand Down

0 comments on commit 00cc985

Please sign in to comment.