Spaces:
Running
Running
remove space before comma
Browse files
client/src/components/LeaderboardSection/components/SectionHeader.jsx
CHANGED
@@ -82,11 +82,12 @@ const SectionHeader = ({
|
|
82 |
<span
|
83 |
style={{
|
84 |
opacity: 0.4,
|
85 |
-
marginLeft:
|
|
|
86 |
marginRight: "0.5rem",
|
87 |
}}
|
88 |
>
|
89 |
-
{index === categories.length - 1 ? "
|
90 |
</span>
|
91 |
)}
|
92 |
{category}
|
|
|
82 |
<span
|
83 |
style={{
|
84 |
opacity: 0.4,
|
85 |
+
marginLeft:
|
86 |
+
index === categories.length - 1 ? "0.5rem" : "0",
|
87 |
marginRight: "0.5rem",
|
88 |
}}
|
89 |
>
|
90 |
+
{index === categories.length - 1 ? "and" : ","}
|
91 |
</span>
|
92 |
)}
|
93 |
{category}
|