fix(ui): compare version only if version is set (#18210)

This commit is contained in:
Chirag Madlani 2024-10-10 18:09:49 +05:30 committed by GitHub
parent ca15c410d9
commit 3dc9abef45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,7 +311,8 @@ const NavBar = ({
return;
}
const newVersion = await getVersion();
if (version !== newVersion.version) {
// Compare version only if version is set previously to have fair comparison
if (version && version !== newVersion.version) {
setShowVersionMissMatchAlert(true);
}
};