closed #74
If looking at totals roll up should be totals, if percentage then percentages should show
This commit is contained in:
@@ -40,12 +40,8 @@ struct HeaderPercView: View {
|
||||
let moodEntries = moodEntries.filter({
|
||||
Int($0.moodValue) == mood.rawValue
|
||||
})
|
||||
|
||||
let total = moodEntries.count
|
||||
|
||||
let perc = (Float(total) / Float(totalEntryCount)) * 100
|
||||
|
||||
|
||||
entries.append((mood, total, perc))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user