Skip to content

Commit

Permalink
Merge pull request #146 from CybercentreCanada/hotfix/error_viewer
Browse files Browse the repository at this point in the history
Don't show 0 versions
  • Loading branch information
cccs-sgaron authored Sep 27, 2021
2 parents be14266 + f565849 commit 4a6f7b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/routes/admin/error_viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ function ErrorDetail({ error }) {
<Grid item xs={6} sm={8}>
<Typography variant="h5">{error.response.service_name}</Typography>
<Typography variant="caption">
{`${error.response.service_version}${
error.response.service_tool_version ? ` (${error.response.service_tool_version})` : ''
}`}
{(error.response.service_version !== 0 || error.response.service_version !== '0') &&
error.response.service_version}
{error.response.service_tool_version && ` (${error.response.service_tool_version})`}
</Typography>
</Grid>
<Grid item xs={6} sm={4}>
Expand Down

0 comments on commit 4a6f7b8

Please sign in to comment.