Skip to content

Commit dbbbf4d

Browse files
use ternaries
1 parent cf055be commit dbbbf4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-router/lib/dom/ssr/errorBoundaries.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function RemixRootDefaultErrorBoundary({
9797
<h1 style={{ fontSize: "24px" }}>
9898
{error.status} {error.statusText}
9999
</h1>
100-
{ENABLE_DEV_WARNINGS && heyDeveloper}
100+
{ENABLE_DEV_WARNINGS ? heyDeveloper : null}
101101
</BoundaryShell>
102102
);
103103
}

packages/react-router/lib/dom/ssr/fallback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ENABLE_DEV_WARNINGS } from "../../context";
1010
export function RemixRootDefaultHydrateFallback() {
1111
return (
1212
<BoundaryShell title="Loading..." renderScripts>
13-
{ENABLE_DEV_WARNINGS && (
13+
{ENABLE_DEV_WARNINGS ? (
1414
<script
1515
dangerouslySetInnerHTML={{
1616
__html: `
@@ -23,7 +23,7 @@ export function RemixRootDefaultHydrateFallback() {
2323
`,
2424
}}
2525
/>
26-
)}
26+
) : null}
2727
</BoundaryShell>
2828
);
2929
}

0 commit comments

Comments
 (0)