[CLEAR-38] Round nutrition values
This commit is contained in:
parent
30d017a44f
commit
5cb1d1d86f
@ -75,6 +75,11 @@ class UsersRepository implements UsersRepositoryInterface
|
|||||||
$nutritionSum[$name] += $value;
|
$nutritionSum[$name] += $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach($nutritionSum as $k => $v){
|
||||||
|
$nutritionSum[$k] = round($v, 2);
|
||||||
|
}
|
||||||
|
|
||||||
$recipeHistory[] = array_merge(['date' => $date], $nutritionSum);
|
$recipeHistory[] = array_merge(['date' => $date], $nutritionSum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user