Skip to content

Commit

Permalink
Filters: Fix label with single value pickers
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <[email protected]>
  • Loading branch information
kingbri1 committed Apr 23, 2023
1 parent 468d89b commit 76a0262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ferrite/Views/ComponentViews/Filters/FilterLabelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 76a0262

Please sign in to comment.