I'm stupid

This commit is contained in:
Ava DeCroix
2023-05-01 19:58:23 -04:00
parent fcd91602c2
commit d762fe343e

View File

@@ -158,7 +158,7 @@ const net_id = ReactSession.get("net_id");
const setColors = () => { const setColors = () => {
var dayFactor = planDay(); var dayFactor = planDay() / 7;
//set green //set green
if(sum.calories < (1.1*goals.calories/dayFactor) && sum.calories >= (0.9*goals.calories/dayFactor)){ if(sum.calories < (1.1*goals.calories/dayFactor) && sum.calories >= (0.9*goals.calories/dayFactor)){