From 3f9314a0c3e1d707d66b370c2f3e7bea83bb0daf Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Thu, 28 Jan 2021 22:11:04 -0500 Subject: [PATCH] Fixed bug where categories selection logic had an out of range exception --- backend/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/categories.js b/backend/categories.js index d4b19f5..2134373 100644 --- a/backend/categories.js +++ b/backend/categories.js @@ -48,7 +48,7 @@ async function categorize(file_jsons) { for (let i = 0; i < file_jsons.length; i++) { const file_json = file_jsons[i]; for (let j = 0; j < categories.length; j++) { - const category = categories[i]; + const category = categories[j]; const rules = category['rules']; // if rules for current category apply, then that is the selected category