Skip to content

Commit

Permalink
Hide "Tap account to exclude" on relay settings if there is only 1 ac…
Browse files Browse the repository at this point in the history
…count
  • Loading branch information
fabianfabian committed Feb 2, 2024
1 parent 073b3f2 commit e18d0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nostur/Relays/RelayEditView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct RelayEditView: View {
}
Toggle(isOn: $relay.write) {
Text("Publish to this relay", comment: "Label for toggle to publish to this relay") .background(refresh ? Color.clear : Color.clear)
if relay.write {
if relay.write && accounts.count > 1 {
ScrollView(.horizontal) {
HStack {
ForEach(accounts) { account in
Expand Down

0 comments on commit e18d0ce

Please sign in to comment.