aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/components
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-08-26 12:59:00 -0300
committerSebastian <sebasjm@gmail.com>2022-08-26 12:59:09 -0300
commitcf894f1dd309e48d8be380c56175219027c84fb7 (patch)
tree8aa434c47d4ed366f4b3d5f0bd89fc696a388b9d /packages/anastasis-webui/src/components
parenteef2d4702019b9de64efc01fff097b437e65ce39 (diff)
downloadwallet-core-cf894f1dd309e48d8be380c56175219027c84fb7.tar.xz
fix #7065
Diffstat (limited to 'packages/anastasis-webui/src/components')
-rw-r--r--packages/anastasis-webui/src/components/menu/SideBar.tsx7
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 {