Skip to content

Commit a3794fe

Browse files
committed
Fix maybe mem leak badge
1 parent 44e87ad commit a3794fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ui/components/common/FiberMaybeLeak.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function listOfLeaks(leaked: number) {
1616
let bitNum = 0;
1717

1818
while (leaked >= 1 << bitNum) {
19-
if (leaked | (1 << bitNum)) {
19+
if (leaked & (1 << bitNum)) {
2020
const title = TrackingObjectTypeName[bitNum as TrackingObjectType];
2121
result.push(`${title} (${title[0].toUpperCase()})`);
2222
}

0 commit comments

Comments
 (0)