From 77ae981e2fc21db1aeccf84fdf7e3dc844ea4b09 Mon Sep 17 00:00:00 2001 From: mormaer Date: Fri, 8 Sep 2023 23:59:45 +0100 Subject: [PATCH] fix - access accounts tracker via dependency (#584) --- Mlem/Views/Shared/Accounts/DeleteAccountView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mlem/Views/Shared/Accounts/DeleteAccountView.swift b/Mlem/Views/Shared/Accounts/DeleteAccountView.swift index 9683838cc..d17e6c3e6 100644 --- a/Mlem/Views/Shared/Accounts/DeleteAccountView.swift +++ b/Mlem/Views/Shared/Accounts/DeleteAccountView.swift @@ -10,8 +10,9 @@ import Foundation import SwiftUI struct DeleteAccountView: View { + @Dependency(\.accountsTracker) var accountsTracker + @EnvironmentObject var appState: AppState - @EnvironmentObject var accountsTracker: SavedAccountTracker @Environment(\.dismiss) var dismiss @Environment(\.forceOnboard) var forceOnboard