From abc64aec8569eb77b1de542e0253709b389b3e9d Mon Sep 17 00:00:00 2001 From: Sendou Date: Sat, 30 Nov 2019 18:21:32 +0200 Subject: [PATCH] undid finland taking over the world --- react-ui/src/components/user/ProfileLists.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react-ui/src/components/user/ProfileLists.js b/react-ui/src/components/user/ProfileLists.js index 0a50dfa7b..a01d3e9a1 100644 --- a/react-ui/src/components/user/ProfileLists.js +++ b/react-ui/src/components/user/ProfileLists.js @@ -1,6 +1,7 @@ import React from "react" import { List, Flag, Grid } from "semantic-ui-react" import WpnImage from "../common/WpnImage" +import { countries } from "../../utils/lists" const SensListItem = ({ sens }) => { const stickSensString = sens.stick @@ -56,7 +57,10 @@ const ProfileLists = ({ user }) => { - Finland + {countries.reduce( + (acc, cur) => (cur.code === user.country ? cur.name : acc), + "" + )} )}