Skip to content

Commit

Permalink
Only display API version if present
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex committed Jan 8, 2019
1 parent ab943a8 commit 4b302d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/ApiInfo/ApiInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,18 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
)) ||
null;

const version =
(info.version && (
<span>({info.version})</span>
)) ||
null;

return (
<Section>
<Row>
<MiddlePanel className="api-info">
<ApiHeader>
{info.title} <span>({info.version})</span>
{info.title} {version}
</ApiHeader>
{!hideDownloadButton && (
<p>
Expand Down

0 comments on commit 4b302d5

Please sign in to comment.