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
1 changed files with 3 additions and 3 deletions

View File

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