summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNullptrderef <nullptrderef@proton.me>2024-04-21 09:23:27 +0200
committerNullptrderef <nullptrderef@proton.me>2024-04-21 09:23:27 +0200
commit5cab30306ad6e69abba5979beb08276891e4b22b (patch)
treef2c8193f216ef7187788d596eb64b0c5ccfbbe22
parent11d8293c4e92109f0f1eeeb4717222b8435a797f (diff)
downloadwallet-core-5cab30306ad6e69abba5979beb08276891e4b22b.tar.gz
wallet-core-5cab30306ad6e69abba5979beb08276891e4b22b.tar.bz2
wallet-core-5cab30306ad6e69abba5979beb08276891e4b22b.zip
use git short hashes
-rw-r--r--packages/anastasis-webui/src/components/menu/SideBar.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx
index 3dac73e04..31bc3c7a7 100644
--- a/packages/anastasis-webui/src/components/menu/SideBar.tsx
+++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx
@@ -29,7 +29,10 @@ interface Props {
}
const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "dev";
-const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined;
+const GIT_HASH =
+ typeof __GIT_HASH__ !== "undefined"
+ ? __GIT_HASH__.substring(0, 7)
+ : undefined;
const VERSION_WITH_HASH = GIT_HASH ? `${VERSION}-${GIT_HASH}` : VERSION;
export function Sidebar({ mobile }: Props): VNode {