fix: remove targetAmount (not in API model)
This commit is contained in:
@@ -657,12 +657,7 @@ struct SavingsCategoryCard: View {
|
||||
Text(formatAmt(category.currentAmount ?? 0))
|
||||
.font(.callout.bold())
|
||||
.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)
|
||||
|
||||
Reference in New Issue
Block a user