From 629c77c110042d5160f5218bee54f76b81c4dad2 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Tue, 20 Apr 2021 03:37:05 -0400 Subject: Multiple state changes and efficiency fixes. --- react-frontend/src/components/HubList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'react-frontend/src/components/HubList.js') diff --git a/react-frontend/src/components/HubList.js b/react-frontend/src/components/HubList.js index aab7c23..8e00d0f 100644 --- a/react-frontend/src/components/HubList.js +++ b/react-frontend/src/components/HubList.js @@ -20,7 +20,7 @@ function HubList(props) { // sort and create the elemnts let hubs = []; //const sorted = props.data.sort((a, b) => b.suspicionScore - a.suspicionScore); - props.data.forEach((hub) => + props.data.forEach(hub => hubs.push(