Fix typo: change 'then' to 'the' (#5978)

The sentence reads:

In this solution, two separate conditions are used to insert a space between then name and the importance label.

It should read:
In this solution, two separate conditions are used to insert a space between the name and the importance label.
This commit is contained in:
Tunzeki
2023-04-29 21:03:25 +01:00
committed by GitHub
parent 8ed23b1a06
commit 68a934313f

View File

@@ -626,7 +626,7 @@ export default function PackingList() {
Note that you must write `importance > 0 && ...` rather than `importance && ...` so that if the `importance` is `0`, `0` isn't rendered as the result!
In this solution, two separate conditions are used to insert a space between then name and the importance label. Alternatively, you could use a fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
In this solution, two separate conditions are used to insert a space between the name and the importance label. Alternatively, you could use a fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
</Solution>