Commit b504e7ae authored by Tamás Danis's avatar Tamás Danis

bug fix

parent 9eba301f
......@@ -18,7 +18,7 @@ const SpendingChart = ({ transactions, user }) => {
const countPrice = transaction => {
let res = 0;
transaction.products.forEach(product => {
res += product.price;
res += parseFloat(product.price);
});
return Math.round(res * 100) / 100;
};
......
......@@ -10,7 +10,7 @@ const TransactionListItem = ({ transaction, deleteTransaction }) => {
const countPrice = () => {
let res = 0;
transaction.products.forEach(product => {
res += product.price;
res += parseFloat(product.price);
});
return Math.round(res * 100) / 100;
};
......
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