Added CURRENT_VERSION constant.

This commit is contained in:
Mike Cao 2022-08-08 11:31:36 -07:00
parent fb14514a65
commit 9b7e472410
4 changed files with 15 additions and 16 deletions

View file

@ -1,11 +1,11 @@
import create from 'zustand';
import produce from 'immer';
import semver from 'semver';
import { VERSION_CHECK, UPDATES_URL } from 'lib/constants';
import { CURRENT_VERSION, VERSION_CHECK, UPDATES_URL } from 'lib/constants';
import { getItem } from 'lib/web';
const initialState = {
current: process.env.currentVersion,
current: CURRENT_VERSION,
latest: null,
hasUpdate: false,
checked: false,