From 8571800b3170c02ffaba1c0b2b126d14dd6b7d54 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 10 Mar 2023 08:13:40 +0100 Subject: [PATCH] Account selector: Refresh accounts more often --- .../Sources/AppAccount/AppAccountsSelectorView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift index 9dfd8735..be429d4f 100644 --- a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift +++ b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift @@ -49,6 +49,9 @@ public struct AppAccountsSelectorView: View { .onChange(of: currentAccount.account?.id) { _ in refreshAccounts() } + .onAppear { + refreshAccounts() + } } @ViewBuilder