Skip to content

Commit

Permalink
Don't show 0 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Sep 27, 2021
1 parent 820bdbe commit f565849
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 f565849

Please sign in to comment.