fix: remove targetAmount (not in API model)

This commit is contained in:
Cosmo
2026-03-25 17:26:03 +00:00
parent 0dc3badf18
commit 7748392c31
2 changed files with 6 additions and 10 deletions

View File

@@ -657,12 +657,7 @@ struct SavingsCategoryCard: View {
Text(formatAmt(category.currentAmount ?? 0)) Text(formatAmt(category.currentAmount ?? 0))
.font(.callout.bold()) .font(.callout.bold())
.foregroundColor(Color(hex: category.colorHex)) .foregroundColor(Color(hex: category.colorHex))
if let target = category.targetAmount, target > 0 {
let progress = min((category.currentAmount ?? 0) / target, 1.0)
Text(String(format: "%.0f%%", progress * 100))
.font(.caption2)
.foregroundColor(Color(hex: "8888aa"))
}
} }
} }
.padding(14) .padding(14)

View File

@@ -8,6 +8,10 @@ targets:
type: application type: application
platform: iOS platform: iOS
sources: PulseHealth sources: PulseHealth
entitlements:
path: PulseHealth/PulseHealth.entitlements
capabilities:
- healthkit
settings: settings:
base: base:
PRODUCT_BUNDLE_IDENTIFIER: com.daniil.pulsehealth PRODUCT_BUNDLE_IDENTIFIER: com.daniil.pulsehealth
@@ -15,7 +19,4 @@ targets:
INFOPLIST_FILE: PulseHealth/Info.plist INFOPLIST_FILE: PulseHealth/Info.plist
CODE_SIGN_STYLE: Automatic CODE_SIGN_STYLE: Automatic
CODE_SIGN_ENTITLEMENTS: PulseHealth/PulseHealth.entitlements CODE_SIGN_ENTITLEMENTS: PulseHealth/PulseHealth.entitlements
entitlements: DEVELOPMENT_TEAM: TEAM_ID_PLACEHOLDER
path: PulseHealth/PulseHealth.entitlements
capabilities:
- com.apple.HealthKit