Skip to content

Commit 1c1f8ae

Browse files
Merge branch 'main' into APL-475
2 parents 1edfe8d + 39ddbf1 commit 1c1f8ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/UpgradeVersion.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default function UpgradesCard({ version }: Props): React.ReactElement | n
7878
}
7979

8080
const versionUpgrades = parseUpdates(data, version)
81+
const currentMajorVersion = version.split('.')[0]
8182

8283
const latestCurrentUpdate = findLast(versionUpgrades?.currentVersionUpdates)?.version
8384

@@ -88,7 +89,7 @@ export default function UpgradesCard({ version }: Props): React.ReactElement | n
8889
<Typography variant='h5'>Available versions</Typography>
8990

9091
<Typography variant='body1' sx={{ fontSize: '14px', fontWeight: 'bold' }}>
91-
Current version: {version}
92+
Current version: v{version}
9293
</Typography>
9394
</Stack>
9495

@@ -105,7 +106,7 @@ export default function UpgradesCard({ version }: Props): React.ReactElement | n
105106
}}
106107
>
107108
<Typography sx={{ marginRight: '2rem' }}>
108-
You are currently running the latest minor version of your major.
109+
There are no new updates for v{currentMajorVersion}
109110
</Typography>
110111
</Box>
111112
)}

0 commit comments

Comments
 (0)