From 72cfc4a471617e559c45c2462b59a037f70b0971 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 3 Jul 2024 15:24:17 -0700 Subject: [PATCH] fix version in vercel as main (#2899) * fix version in vercel as nightly Signed-off-by: Jess Frazelle * its actually the main branch Signed-off-by: Jess Frazelle * format Signed-off-by: Jess Frazelle --------- Signed-off-by: Jess Frazelle --- src/routes/Settings.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index b372d6b52..13aaabcf4 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -12,8 +12,11 @@ import { SettingsSectionsList } from 'components/Settings/SettingsSectionsList' import { AllSettingsFields } from 'components/Settings/AllSettingsFields' import { AllKeybindingsFields } from 'components/Settings/AllKeybindingsFields' import { KeybindingsSectionsList } from 'components/Settings/KeybindingsSectionsList' +import { isTauri } from 'lib/isTauri' -export const APP_VERSION = import.meta.env.PACKAGE_VERSION || 'unknown' +export const APP_VERSION = isTauri() + ? import.meta.env.PACKAGE_VERSION || 'unknown' + : 'main' export const Settings = () => { const navigate = useNavigate()