File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,14 @@ export function getAppVersion(
204204) : AppVersion {
205205 const shouldDisplayApiVersion =
206206 ! isLoading &&
207- ( versionData ?. semver || "" ) . replace ( / ^ v + / , "" ) !== defaultVersion &&
207+ ( versionData ?. semver || "" ) . replace ( / ^ v + / , "" ) !==
208+ defaultVersion . replace ( / ^ v + / , "" ) &&
208209 versionData ?. branch &&
209210 versionData ?. commit ;
210211
211212 const versionText = shouldDisplayApiVersion
212213 ? `${ versionData . branch } -${ versionData . commit } `
213- : `${ defaultVersionPrefix } ${ defaultVersion } ` ;
214+ : `${ defaultVersionPrefix } ${ defaultVersion . replace ( / ^ v + / , "" ) } ` ;
214215 const versionHref = shouldDisplayApiVersion
215216 ? `${ repoUrl } /commit/${ versionData . commit } `
216217 : `${ repoUrl } /releases/tag/v${ defaultVersion } ` ;
You can’t perform that action at this time.
0 commit comments