From 4cefcccdcedbc5047b545ed0bdd7bc56ab029cc6 Mon Sep 17 00:00:00 2001 From: keplyx Date: Sat, 28 Sep 2019 10:40:10 +0200 Subject: [PATCH] Hide articles with empty stock --- screens/Proximo/ProximoMainScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens/Proximo/ProximoMainScreen.js b/screens/Proximo/ProximoMainScreen.js index 2fae080..c91dca4 100644 --- a/screens/Proximo/ProximoMainScreen.js +++ b/screens/Proximo/ProximoMainScreen.js @@ -63,7 +63,7 @@ export default class ProximoMainScreen extends FetchedDataSectionList { data: [] }); for (let k = 0; k < articles.length; k++) { - if (articles[k]['type'].includes(types[i].id)) { + if (articles[k]['type'].includes(types[i].id) && parseInt(articles[k]['quantity']) > 0) { finalData[i].data.push(articles[k]); } }