This commit is contained in:
Stanislaw-Golebiewski 2020-01-26 23:09:10 +01:00
parent 4afd46579f
commit 7d5a3626c6

View File

@ -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(",", "."));
});