1
0
mirror of git://jb55.com/damus synced 2024-09-30 17:00:43 +00:00

Hide Recommended Relays Section if Empty

Closes: #293
Changelog-Changed: Hide Recommended Relays Section if Empty
This commit is contained in:
Joel Klabo 2023-01-08 21:48:29 -08:00 committed by William Casarin
parent 5a32a384c4
commit 45e64dc42c

View File

@ -70,9 +70,11 @@ struct ConfigView: View {
} }
} }
Section(NSLocalizedString("Recommended Relays", comment: "Section title for recommend relay servers that could be added as part of configuration")) { if recommended.count > 0 {
List(recommended, id: \.url) { r in Section(NSLocalizedString("Recommended Relays", comment: "Section title for recommend relay servers that could be added as part of configuration")) {
RecommendedRelayView(damus: state, relay: r.url.absoluteString) List(recommended, id: \.url) { r in
RecommendedRelayView(damus: state, relay: r.url.absoluteString)
}
} }
} }