aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-03 17:03:39 -0500
committerIvan Chen <ivan@tagg.id>2021-03-03 17:03:39 -0500
commitc9155214b20608e97fc29fe7ef0b660698d6b4fd (patch)
tree17e0fd44e13887ffa4b4a2c7dfecd2027d8097de
parentf14a3582e6b8dc19573b48b035fe31c560dac77a (diff)
fixed boolean
-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));
}