Skip to content

Commit 521fd92

Browse files
authored
Merge pull request react-bootstrap#5338 from react-bootstrap/fix/netlify-alert-branch
fix(docs): type mismatch with environment variable
2 parents 6460f3e + 647b4ff commit 521fd92

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)