From 5bfae3a1c2f487b690158d21debcb4ee437a8f28 Mon Sep 17 00:00:00 2001 From: Alexander Bentkamp Date: Wed, 25 Jan 2023 16:22:45 +0100 Subject: [PATCH] show other goals only for more than 1 goal --- client/src/components/infoview/info.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/components/infoview/info.tsx b/client/src/components/infoview/info.tsx index ccf87c7..b4d051a 100644 --- a/client/src/components/infoview/info.tsx +++ b/client/src/components/infoview/info.tsx @@ -121,10 +121,10 @@ const InfoDisplayContent = React.memo((props: InfoDisplayContentProps) => { { e.preventDefault(); void triggerUpdate(); }}>{' '}Try again. } -
-
Main Goal
- {goals && goals.goals.length > 0 && } -
+ {goals && goals.goals.length > 0 &&
+
Main Goal
+ +
}
{/* */} @@ -154,12 +154,12 @@ const InfoDisplayContent = React.memo((props: InfoDisplayContentProps) => {
Loading goal...
)} -
-
Other Goals
+ {goals && goals.goals.length > 1 &&
+
Other Goals
- {goals && goals.goals.slice(1).map((goal, i) => -
)} -
+ {goals.goals.slice(1).map((goal, i) => +
)} +
}
})