Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Dec 23, 2024
1 parent db9b326 commit 8a31408
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ data class RelayFilterUiState(
}.sorted()

val isApplyButtonEnabled = selectedProviders.getOrNull()?.isNotEmpty() != false
val removedProviders: List<ProviderId> = selectedProviders - allProviders
val removedProviders: List<ProviderId> =
when (selectedProviders) {
Constraint.Any -> emptyList()
is Constraint.Only -> selectedProviders.value.toList() - allProviders
}

val isAllProvidersChecked = selectedProviders is Constraint.Any
}

0 comments on commit 8a31408

Please sign in to comment.