From 7d5a3626c6408a49a7f363b446e4a11d418fae3c Mon Sep 17 00:00:00 2001 From: Stanislaw-Golebiewski Date: Sun, 26 Jan 2020 23:09:10 +0100 Subject: [PATCH] bugfix --- .../screens/AddReceipt/subscreens/AddMetadata/AddMetadata.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bk_webapp/src/screens/AddReceipt/subscreens/AddMetadata/AddMetadata.jsx b/bk_webapp/src/screens/AddReceipt/subscreens/AddMetadata/AddMetadata.jsx index 680e343..2ff220c 100644 --- a/bk_webapp/src/screens/AddReceipt/subscreens/AddMetadata/AddMetadata.jsx +++ b/bk_webapp/src/screens/AddReceipt/subscreens/AddMetadata/AddMetadata.jsx @@ -59,7 +59,7 @@ function AddMetadata() { }; const get_mata_data_obj = () => { - const products = productsFromPhoto; + const products = productsFromPhoto ? productsFromPhoto : []; products.forEach(product => { product.price = parseFloat(product.price.replace(",", ".")); });