Skip to content

Commit 53de972

Browse files
committed
ui-charts: remove dead code in DetailsBox
The right-hand-side of the expression is never used, because a non-empty string is always truthy. Signed-off-by: Simon Ser <contact@emersion.fr>
1 parent e3a1d84 commit 53de972

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • front/ui/ui-charts/src/speedSpaceChart/components/common

front/ui/ui-charts/src/speedSpaceChart/components/common/DetailsBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const DetailsBox = ({
9191
{declivities && (
9292
<>
9393
<hr />
94-
<span id="previous-gradient-text">{`${previousGradientText} ‰` || '--'}</span>
94+
<span id="previous-gradient-text">{`${previousGradientText} ‰`}</span>
9595
</>
9696
)}
9797
</div>

0 commit comments

Comments
 (0)