Skip to content

Commit

Permalink
Merge pull request #144 from CybercentreCanada/hotfix/error_viewer
Browse files Browse the repository at this point in the history
Fix error viewer tool version
  • Loading branch information
cccs-sgaron authored Sep 27, 2021
2 parents 484a579 + d05ab3d commit d8eb660
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 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,10 @@ 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 d8eb660

Please sign in to comment.