diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 09:23:27 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 09:23:27 +0200 |
commit | 5cab30306ad6e69abba5979beb08276891e4b22b (patch) | |
tree | f2c8193f216ef7187788d596eb64b0c5ccfbbe22 /packages | |
parent | 11d8293c4e92109f0f1eeeb4717222b8435a797f (diff) | |
download | wallet-core-5cab30306ad6e69abba5979beb08276891e4b22b.tar.xz |
use git short hashes
Diffstat (limited to 'packages')
-rw-r--r-- | packages/anastasis-webui/src/components/menu/SideBar.tsx | 5 |
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 { |