Skip to content

Commit 647b4ff

Browse files
committed
fix(docs): type mismatch with environment variable
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).
1 parent 6460f3e commit 647b4ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

www/src/components/DocsAlert.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function DocsAlert() {
1111
<Row>
1212
<Alert variant="warning" className="w-100">
1313
You are currently viewing the auto-generated docs from{' '}
14-
{netlify.pullRequest ? (
14+
{netlify.pullRequest === 'true' ? (
1515
<span>
1616
a{' '}
1717
<Alert.Link
@@ -21,7 +21,9 @@ export default function DocsAlert() {
2121
</Alert.Link>
2222
</span>
2323
) : (
24-
<span>the {netlify.branch} branch</span>
24+
<span>
25+
the <b>{netlify.branch}</b> branch
26+
</span>
2527
)}
2628
. The docs for the current release are available at{' '}
2729
<Alert.Link href="https://react-bootstrap.github.io/">

0 commit comments

Comments
 (0)