fix(healthchat): refresh the account status whenever settings appears

The banner kept telling the user to complete a profile they had just
completed, and nothing was fetched until the screen was actually shown.
This commit is contained in:
Sedat Qaja
2026-10-12 11:40:42 +02:00
parent d01d04846a
commit be803d0542
6 changed files with 71 additions and 9 deletions
@@ -13,8 +13,6 @@ import SwiftUI
///
/// Neither banner is dismissible — both resolve server-side.
struct HealthChatAccountStatusSection: View {
// Owned by the hook, not the view: the settings screen rebuilds this section on
// every body pass, and a view-owned loader would fire a request each time.
private let loader: HealthChatAccountStatusLoader
private let completeProfileAction: () -> Void