Skip to content

Commit

Permalink
Merge pull request #147 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 4a6f7b8 + d05ab3d commit 68a96bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/routes/admin/error_viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ function ErrorDetail({ error }) {
<Grid item xs={6} sm={8}>
<Typography variant="h5">{error.response.service_name}</Typography>
<Typography variant="caption">
{(error.response.service_version !== 0 || error.response.service_version !== '0') &&
{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>
Expand Down

0 comments on commit 68a96bd

Please sign in to comment.