Commit 9ae35d57 authored by Jasper Verbeet's avatar Jasper Verbeet 🙇🏻

Fixes

parent 6e1ab9e8
......@@ -92,15 +92,6 @@ app.get('/api/notification', (req, res) => {
const weight = `${weightNum} kg`;
const currentWeight = scale(currentWeightNum, 0, 10000, 0, 1);
const newWeight = scale(currentWeightNum + weightNum, 0, 10000, 0, 1);
console.log(
weightNum,
currentWeightNum,
weight,
currentWeight,
newWeight,
)
const increase = `${Math.round((newWeight / currentWeight) * 100)}%`;
const size = `${getDbItem('width')} x ${getDbItem('height')} x ${getDbItem('depth')} cm`;
const time = getDbItem('added_time') | 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment