From bd3bf064d32003fbef202385e1e45a78270df0c8 Mon Sep 17 00:00:00 2001 From: Miguel Fernandez Date: Tue, 8 Dec 2020 18:13:13 +0100 Subject: [PATCH] =?UTF-8?q?mejoro=20la=20funci=C3=B3n=20#43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/getBrand.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/getBrand.js b/functions/getBrand.js index d316468..e4a1dfc 100644 --- a/functions/getBrand.js +++ b/functions/getBrand.js @@ -4,11 +4,12 @@ function gBrand(b){ item = ""; for(i = 1; i <= 6; i++){ if (data['items'][i]["brand"] == b){ - item += "\n Type:" + data['items'][i]["type"][i] + + item += data['items'][i]["brand"] + ":" + + "\n Type:" + data['items'][i]["type"] + "\n Size: " + data['items'][i]["size"] + "\n Color: " + data['items'][i]["color"] + "\n Price: " + data['items'][i]["price"] + - "\n Season: " + data['items'][i]["season"] + ""; + "\n Season: " + data['items'][i]["season"] + "\n"; } } return item;