Skip to content

Commit 543a5f0

Browse files
committed
docs(VersionTable): update last entry
1 parent ed60923 commit 543a5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.storybook/components/VersionTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function VersionTable() {
3434
const nextVersion = allWCRVersions[currentWCRIndex + 1];
3535
const currentMajor = parseInt(wcrVersion.split('.')[0]);
3636
const currentMinor = parseInt(wcrVersion.split('.')[1]);
37-
const wcrVersions = [`~${wcrVersion}`];
37+
const wcrVersions = [`${lastEntry ? '' : '~'}${wcrVersion}`];
3838
if (nextVersion) {
3939
let minor = parseInt(nextVersion.split('.')[1]);
4040
for (let i = currentMinor + 1; i < minor; i++) {
@@ -45,7 +45,7 @@ export function VersionTable() {
4545
return (
4646
<tr key={wcrVersion}>
4747
<td>
48-
{lastEntry ? '>= ' : ''}
48+
{lastEntry ? '^' : ''}
4949
{wcrVersions.join(', ')}
5050
</td>
5151
<td>~{wcVersion}</td>

0 commit comments

Comments
 (0)