From ec26ea802c4cb091fc18311a5c91739cf3ac45da Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 30 Jan 2023 22:24:30 +0100 Subject: [PATCH] Fix profile tab swap --- IceCubesApp/App/Tabs/ProfileTab.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IceCubesApp/App/Tabs/ProfileTab.swift b/IceCubesApp/App/Tabs/ProfileTab.swift index 3ca2007c..f4fb318a 100644 --- a/IceCubesApp/App/Tabs/ProfileTab.swift +++ b/IceCubesApp/App/Tabs/ProfileTab.swift @@ -23,7 +23,7 @@ struct ProfileTab: View { .withAppRouter() .withSheetDestinations(sheetDestinations: $routerPath.presentedSheet) .toolbarBackground(theme.primaryBackgroundColor.opacity(0.50), for: .navigationBar) - .id(client.id) + .id(account.id) } else { AccountDetailView(account: .placeholder()) .redacted(reason: .placeholder)