the currentVersion check condition has been changed

This commit is contained in:
davitbejanyan 2023-05-17 15:56:47 +04:00
parent bbf1c91bfe
commit 0c587fa38d

View file

@ -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 && (