aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-19 14:21:05 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-19 14:21:05 -0700
commit706b1a1cfb518b85eb5271f3e25a27dd4bd3a804 (patch)
tree629826201fb29d17dd8c7151569ea90fd2ce5218 /modern/src
parent749f1824acfd7fbeef2c0c958ffc0e5ce0a7344f (diff)
downloadtrackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.tar.gz
trackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.tar.bz2
trackermap-web-706b1a1cfb518b85eb5271f3e25a27dd4bd3a804.zip
Fix app version
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/settings/PreferencesPage.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/PreferencesPage.jsx b/modern/src/settings/PreferencesPage.jsx
index a05924a9..b83e7095 100644
--- a/modern/src/settings/PreferencesPage.jsx
+++ b/modern/src/settings/PreferencesPage.jsx
@@ -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);