Skip to content

Commit

Permalink
docs: make release switcher consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 20, 2023
1 parent 17bd61c commit ca17e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/components/ReleaseSwitcher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const ReleaseSwitcher = ({
? []
: [
{
label: isLatest ? `v${version} (latest)` : `v${version}`,
label: isLatest ? `${version} (latest)` : version,
value: isLatest ? "" : version,
},
]),
Expand All @@ -44,7 +44,7 @@ export const ReleaseSwitcher = ({
value: key,
}));

releaseOptions[1].label = `v${releaseOptions[1].label} (latest)`;
releaseOptions[1].label = `${releaseOptions[1].label} (latest)`;
releaseOptions[1].value = ""; // Okay to set to "" because isLatest will be true for this release option

setOptions(releaseOptions);
Expand Down

0 comments on commit ca17e97

Please sign in to comment.