diff options
Diffstat (limited to 'packages/anastasis-webui/src/components/menu/SideBar.tsx')
-rw-r--r-- | packages/anastasis-webui/src/components/menu/SideBar.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index f83131ae1..ee394da83 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -28,11 +28,8 @@ interface Props { mobile?: boolean; } -// @ts-ignore -const maybeEnv = process?.env || {}; - -const VERSION: string = maybeEnv.__VERSION__ || "dev"; -const GIT_HASH: string | undefined = maybeEnv.__GIT_HASH__; +const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "dev"; +const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; const VERSION_WITH_HASH = GIT_HASH ? `${VERSION}-${GIT_HASH}` : VERSION; export function Sidebar({ mobile }: Props): VNode { |