Commit d43054e8 authored by Jasper Verbeet's avatar Jasper Verbeet 🙇🏻

Fixes

parent 627b9eff
......@@ -92,7 +92,7 @@ app.get('/api/notification', (req, res) => {
const weight = `${weightNum} kg`;
const currentWeight = parseInt(scale(currentWeightNum, 0, 10000, 0, 100));
const newWeight = parseInt(scale(currentWeightNum + weightNum, 0, 10000, 0, 100));
const increase = `${Math.round((newWeight / currentWeight) * 100)}%`;
const increase = `${Math.round((newWeight / currentWeight) * 100) - 100}%`;
const size = `${getDbItem('width')} x ${getDbItem('height')} x ${getDbItem('depth')} cm`;
const time = getDbItem('added_time') | 0;
const addedTime = time > 60 ? `+ ${twoDigitString(Math.round(time / 60))}:${twoDigitString(time % 60)}` : `+ ${time} min`;
......
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