the currentVersion check condition has been changed
This commit is contained in:
parent
bbf1c91bfe
commit
0c587fa38d
1 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,11 @@ const Version: React.FC = () => {
|
|||
latestVersionInfo.build;
|
||||
const { versionTag } = latestVersionInfo?.latestRelease || '';
|
||||
|
||||
const currentVersion = version?.match(versionTag)
|
||||
? versionTag
|
||||
: formatTimestamp(buildTime);
|
||||
const currentVersion =
|
||||
isLatestRelease && version?.match(versionTag)
|
||||
? versionTag
|
||||
: formatTimestamp(buildTime);
|
||||
|
||||
return (
|
||||
<S.Wrapper>
|
||||
{!isLatestRelease && (
|
||||
|
|
Loading…
Add table
Reference in a new issue