Skip to content

Commit

Permalink
fix(docs): type mismatch with environment variable
Browse files Browse the repository at this point in the history
The classic issue of checking a string as if it was a boolean
value.

Also comes with a styling change to put more of an emphasis on
the branch name (when it is being specified).
  • Loading branch information
bpas247 committed Jul 29, 2020
1 parent 6460f3e commit 647b4ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/src/components/DocsAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function DocsAlert() {
<Row>
<Alert variant="warning" className="w-100">
You are currently viewing the auto-generated docs from{' '}
{netlify.pullRequest ? (
{netlify.pullRequest === 'true' ? (
<span>
a{' '}
<Alert.Link
Expand All @@ -21,7 +21,9 @@ export default function DocsAlert() {
</Alert.Link>
</span>
) : (
<span>the {netlify.branch} branch</span>
<span>
the <b>{netlify.branch}</b> branch
</span>
)}
. The docs for the current release are available at{' '}
<Alert.Link href="https://react-bootstrap.github.io/">
Expand Down

0 comments on commit 647b4ff

Please sign in to comment.