From 9321180fb700831ba979f0e38fa469245e905490 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Thu, 24 Jun 2021 00:04:33 +0000 Subject: [PATCH] Disable friend shuffeling due to matching issues --- src/pages/friends.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/friends.js b/src/pages/friends.js index 8f4bf3a..38e89c3 100644 --- a/src/pages/friends.js +++ b/src/pages/friends.js @@ -31,13 +31,13 @@ export const query = graphql` const FriendsPage = ({ data }) => { const { t } = useI18next(); - function shuffle(a) { + /*function shuffle(a) { for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; - } + }*/ return ( @@ -52,7 +52,7 @@ const FriendsPage = ({ data }) => {

- {shuffle(data.allFriendsJson.nodes).map((friend) => { + {/*shuffle(*/data.allFriendsJson.nodes/*)*/.map((friend) => { return (
{
- {friend.name} - + {friend.name} + {friend.profession}
-
+