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

(cherry picked from commit 3dc9abef451daad1914a496d156592cf8bcc88f5)
This commit is contained in:
Chirag Madlani 2024-10-10 18:09:49 +05:30
parent c9d1bdcdcd
commit f71fd9ce19

View File

@ -310,7 +310,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);
}
};