Filters: Fix label with single value pickers

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2023-04-23 15:12:04 -04:00
parent 468d89b983
commit 76a0262a14

View file

@ -20,7 +20,7 @@ struct FilterLabelView: View {
FilterAmountLabelView(amount: count)
}
Text(count == 1 ? name ?? fallbackName : fallbackName)
Text(count ?? 1 == 1 ? name ?? fallbackName : fallbackName)
.opacity(count ?? 0 > 0 ? 1 : 0.6)
.foregroundColor(count ?? 0 > 0 && colorScheme == .light ? .accentColor : .primary)