Fix app version

This commit is contained in:
Anton Tananaev 2023-08-19 14:21:05 -07:00
parent 749f1824ac
commit 706b1a1cfb
2 changed files with 2 additions and 3 deletions

View File

@ -1,2 +1 @@
ESLINT_NO_DEV_ERRORS=false
REACT_APP_VERSION=$npm_package_version
VITE_APP_VERSION=$npm_package_version

View File

@ -65,7 +65,7 @@ const PreferencesPage = () => {
const user = useSelector((state) => state.session.user);
const [attributes, setAttributes] = useState(user.attributes);
const versionApp = process.env.REACT_APP_VERSION.slice(0, -2);
const versionApp = import.meta.env.VITE_APP_VERSION.slice(0, -2);
const versionServer = useSelector((state) => state.session.server.version);
const socket = useSelector((state) => state.session.socket);