Edit Account should be possible for all accounts; fix type in variable name (#1097)

This commit is contained in:
Peter-Josef Meisch 2023-02-27 18:42:21 +01:00 committed by GitHub
parent d39ff54544
commit a209c9d0c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ public struct AccountDetailView: View {
@EnvironmentObject private var watcher: StreamWatcher @EnvironmentObject private var watcher: StreamWatcher
@EnvironmentObject private var currentAccount: CurrentAccount @EnvironmentObject private var currentAccount: CurrentAccount
@EnvironmentObject private var curretnInstance: CurrentInstance @EnvironmentObject private var currentInstance: CurrentInstance
@EnvironmentObject private var preferences: UserPreferences @EnvironmentObject private var preferences: UserPreferences
@EnvironmentObject private var theme: Theme @EnvironmentObject private var theme: Theme
@EnvironmentObject private var client: Client @EnvironmentObject private var client: Client
@ -294,7 +294,7 @@ public struct AccountDetailView: View {
Menu { Menu {
AccountDetailContextMenu(viewModel: viewModel) AccountDetailContextMenu(viewModel: viewModel)
if viewModel.relationship?.following == true, !viewModel.isCurrentUser { if !viewModel.isCurrentUser {
Button { Button {
isEditingRelationshipNote = true isEditingRelationshipNote = true
} label: { } label: {
@ -309,7 +309,7 @@ public struct AccountDetailView: View {
Label("account.action.edit-info", systemImage: "pencil") Label("account.action.edit-info", systemImage: "pencil")
} }
if curretnInstance.isFiltersSupported { if currentInstance.isFiltersSupported {
Button { Button {
isEditingFilters = true isEditingFilters = true
} label: { } label: {