[web] Fix assignment typo in previous PR (#5499)

https://github.com/ente-io/ente/pull/5498
This commit is contained in:
Manav Rathi
2025-04-01 17:38:20 +05:30
committed by GitHub

View File

@@ -1128,10 +1128,9 @@ const FileThumbnail: React.FC<FileThumbnailProps> = ({
);
useEffect(() => {
let timerID: ReturnType<typeof setTimeout>;
if (isLongPressing) {
setTimeout(() => onSelect(!selected), 500);
}
const timerID = isLongPressing
? setTimeout(() => onSelect(!selected), 500)
: undefined;
return () => {
if (timerID) clearTimeout(timerID);
};