From 2371915a85c60e3fd32a64b3bca31235c1275b4c Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Sat, 8 May 2021 02:31:37 +0300 Subject: [PATCH] improve code readability --- src/views/ContactsPage/ContactsPageView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/ContactsPage/ContactsPageView.tsx b/src/views/ContactsPage/ContactsPageView.tsx index c88bdef..63add7c 100644 --- a/src/views/ContactsPage/ContactsPageView.tsx +++ b/src/views/ContactsPage/ContactsPageView.tsx @@ -137,14 +137,14 @@ const ContactsPageView: React.FC = () => ( - {orderedCommittees.map((json, idx) => ( + {orderedCommittees.map((json) => ( - {(idx !== 0) && ( + {(json.slug !== "board") && ( )} - {(idx === 0) && ( + {(json.slug === "board") && (

{"Hallitukseen saa yhteyden lähettämällä sähköpostia "}