Skip to content

Commit d3910b9

Browse files
fix(web): storage row press tracking compiles under React Compiler
React Compiler does not support logical assignment operators, so the `??=` in the row's pointerdown handler made it skip StorageSettings and failed reactCompilerCoverage.test.ts in CI. Use an explicit null check with the same semantics. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 140c502 commit d3910b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/settings/StorageSettings.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ function RetentionControl({
161161
return (
162162
<div
163163
className="flex items-center gap-3"
164-
onPointerDown={() => (pressing.current ??= "row")}
164+
onPointerDown={() => {
165+
if (pressing.current === null) pressing.current = "row";
166+
}}
165167
onPointerUp={releasePointer}
166168
onPointerLeave={releasePointer}
167169
onPointerCancel={releasePointer}

0 commit comments

Comments
 (0)