fix netlify gates

This commit is contained in:
wil committed 2024-03-18 17:02:23 -04:00
1 parent 90b0e9b88d
commit 6445d1204d
1 file changed
+5 -4
@@ -43,11 +43,12 @@ export const TrimScrubber = ({
useEffect(()=>{
if (trimValues !== null){
const newWidth = calcScrubberWidth();
if (newWidth !== scrubberWidth){
setScrubberWidth(newWidth);
}
setScrubberWidth((currWidth)=>{
if (newWidth !== currWidth) return newWidth;
else return currWidth;
});
}
},[trimValues]);
},[trimValues, calcScrubberWidth]);