mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-08 12:07:27 +08:00
Fix app version
This commit is contained in:
parent
749f1824ac
commit
706b1a1cfb
@ -1,2 +1 @@
|
||||
ESLINT_NO_DEV_ERRORS=false
|
||||
REACT_APP_VERSION=$npm_package_version
|
||||
VITE_APP_VERSION=$npm_package_version
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user