Skip to content

Commit 14c6fdd

Browse files
sophiebitskassens
authored andcommitted
[Flight] Fix style nit from #26623 (#26629)
Maybe this is faster. #26623 (comment)
1 parent c62a889 commit 14c6fdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-client/src/ReactFlightClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ export function parseModelString(
565565
}
566566
case '-': {
567567
// $-0 or $-Infinity
568-
if (value[2] === '0') {
568+
if (value === '$-0') {
569569
return -0;
570570
} else {
571571
return -Infinity;

packages/react-server/src/ReactFlightReplyServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ function parseModelString(
403403
}
404404
case '-': {
405405
// $-0 or $-Infinity
406-
if (value[2] === '0') {
406+
if (value === '$-0') {
407407
return -0;
408408
} else {
409409
return -Infinity;

0 commit comments

Comments
 (0)