remove console logs

This commit is contained in:
bflatastic committed 2024-08-21 14:52:37 +07:00
1 parent 2cc44ba616
commit c5a14c4aa1
1 file changed
-3
@@ -27,18 +27,15 @@ const OutputThumbnailImage: React.FC<OutputThumbnailImageProps> = ({
img.src = thumbSrc;
img.onload = () => {
if (isMounted) {
console.log("Thumbnail loaded successfully");
setThumbnailSrc(thumbSrc);
setIsLoading(false);
}
};
img.onerror = () => {
if (isMounted && attempts < maxAttempts) {
console.log(`Attempt ${attempts + 1} failed, retrying...`);
setTimeout(checkImage, 1000);
attempts += 1;
} else {
console.log("Max attempts reached or component unmounted");
setIsLoading(false);
}
};