Skip to content

Commit

Permalink
refactor(version): restore version inside package.json to avoid build…
Browse files Browse the repository at this point in the history
… errors

Do some conditional rendering of the current version of the app inside Titlebar.tsx
  • Loading branch information
roldanjr committed May 21, 2020
1 parent cf93bb1 commit 06ec0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "productivity-timer",
"version": "2.0.5-beta",
"private": true,
"main": "public/electron.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Titlebar: React.FC<Props> = ({ darkMode, timerType }) => {
<StyledMarkWrapper>
<StyledMarkLogo src={getAppIcon()} />
<StyledMarkName>
{APP_NAME} <span>v{Json.version}</span>
{APP_NAME} {Json.version && <span>v{Json.version}</span>}
</StyledMarkName>
</StyledMarkWrapper>

Expand Down

0 comments on commit 06ec0a2

Please sign in to comment.