Skip to content

Commit

Permalink
fix: update commit hash rendering condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKostroma authored and rileystephens28 committed Apr 17, 2024
1 parent f71d613 commit c0e8185
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ function VersionLabel(): ReactElement {
{t("settings.versionLabel", {
version: process.env.VERSION ?? t("settings.unknownVersionOrCommit"),
})}
{process.env.COMMIT_SHA?.slice(0, 7) ??
t("settings.unknownVersionOrCommit")}
{process.env.COMMIT_SHA
? `<${process.env.COMMIT_SHA?.slice(0, 7)}>`
: ``}
</button>
<style jsx>
{`
Expand Down

0 comments on commit c0e8185

Please sign in to comment.