From 5796b86ba91309b9b88721f24fed2c521339b768 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Fri, 31 Jul 2020 09:51:21 +1000 Subject: [PATCH] Fix category sorting --- src/wappalyzer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index d00fc8e1d..e633667f7 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -58,8 +58,9 @@ const Wappalyzer = { Wappalyzer.resolveImplies(resolved) const priority = ({ technology: { categories } }) => - categories.reduce((max, id) => - Math.max(max, Wappalyzer.getCategory(id).priority) + categories.reduce( + (max, id) => Math.max(max, Wappalyzer.getCategory(id).priority), + 0 ) return resolved