mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-10 05:16:19 +00:00
refactor: remove unnecessary useEffect in LibraryGameCard
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { LibraryGame } from "@types";
|
||||
import { useGameCard } from "@renderer/hooks";
|
||||
import { memo, useState, useEffect } from "react";
|
||||
import { memo, useState } from "react";
|
||||
import {
|
||||
ClockIcon,
|
||||
AlertFillIcon,
|
||||
@@ -34,10 +34,6 @@ export const LibraryGameCard = memo(function LibraryGameCard({
|
||||
|
||||
const [imageError, setImageError] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setImageError(false);
|
||||
}, [coverImage]);
|
||||
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user