aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/Routes.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx
index 01ffacab..c7b9aeee 100644
--- a/src/routes/Routes.tsx
+++ b/src/routes/Routes.tsx
@@ -55,7 +55,7 @@ const Routes: React.FC = () => {
useEffect(() => {
const checkVersion = async () => {
const liveVersions = await getCurrentLiveVersions();
- if (liveVersions.includes(DeviceInfo.getVersion())) {
+ if (liveVersions && !liveVersions.includes(DeviceInfo.getVersion())) {
setNewVersionAvailable(true);
dispatch(updateNewVersionAvailable(true));
}