Commit a14c7ef0 authored by therealwolf's avatar therealwolf 💯
Browse files

fix

parent b5c8c9dd
......@@ -32,8 +32,8 @@ export let add_values = (values) => {
for (let v of values) {
for (let key of Object.keys(v)) {
if (!x[key]) x[key] = 0;
x[key] += v[key];
x[key] = parseFloat(x[key].toFixed(3));
x[key] += v[key] ? v[key] : 0;
x[key] = x[key] ? parseFloat(x[key].toFixed(3)) : x[key];
}
}
x = get_change(x);
......
Supports Markdown
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