fix: API field mapping, HealthKit entitlement, profile tab, forgot password
This commit is contained in:
@@ -18,7 +18,7 @@ struct DashboardView: View {
|
||||
}
|
||||
}
|
||||
|
||||
var pendingTasks: [PulseTask] { tasks.filter { !$0.done } }
|
||||
var pendingTasks: [PulseTask] { tasks.filter { !$0.completed } }
|
||||
var completedHabitsToday: Int { habits.filter { $0.completedToday == true }.count }
|
||||
|
||||
var body: some View {
|
||||
@@ -67,7 +67,7 @@ struct DashboardView: View {
|
||||
StatCard(icon: "checkmark.circle.fill", value: "\(pendingTasks.count)", label: "Задач", color: "00d4aa")
|
||||
StatCard(icon: "flame.fill", value: "\(completedHabitsToday)/\(habits.count)", label: "Привычек", color: "ffa502")
|
||||
if let s = summary, let balance = s.balance {
|
||||
StatCard(icon: "rublesign.circle.fill", value: "\(Int(balance))₽", label: "Баланс", color: "7c3aed")
|
||||
StatCard(icon: "rublesign.circle.fill", value: "\(Int(balance))₽", label: "Финансы", color: "7c3aed")
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
|
||||
Reference in New Issue
Block a user