aboutsummaryrefslogtreecommitdiff
path: root/react-frontend/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'react-frontend/src/components')
-rw-r--r--react-frontend/src/components/HubList.js4
-rw-r--r--react-frontend/src/components/Visualization.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/react-frontend/src/components/HubList.js b/react-frontend/src/components/HubList.js
index 5736e89..0df3020 100644
--- a/react-frontend/src/components/HubList.js
+++ b/react-frontend/src/components/HubList.js
@@ -22,8 +22,8 @@ function HubList(props) {
const updateHubItems = () => {
// sort and create the elemnts
let hubs = [];
- const sorted = props.data.sort((a, b) => b.suspicionScore - a.suspicionScore);
- sorted.forEach(hub => hubs.push(
+ //const sorted = props.data.sort((a, b) => b.suspicionScore - a.suspicionScore);
+ props.data.forEach(hub => hubs.push(
<Hub key={hub.id} id={hub.id} name={hub.name} value={hub.suspicionScore} setSelected={props.setSelected}></Hub>
));
diff --git a/react-frontend/src/components/Visualization.js b/react-frontend/src/components/Visualization.js
index 2016129..1975e86 100644
--- a/react-frontend/src/components/Visualization.js
+++ b/react-frontend/src/components/Visualization.js
@@ -32,7 +32,7 @@ function Visualization(props) {
nodes.push({
id: hub.id,
label: hub.name,
- size: hub.suspicionScore * 10
+ size: hub.suspicionScore
});
}
});