refactor: Improve error handling and variable naming in Assets and IKAnimationController components

This commit is contained in:
2025-04-16 18:05:23 +05:30
parent ee319c28e4
commit 64885f246e
2 changed files with 15 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ const Assets: React.FC = () => {
try {
const filt = await fetchAssets();
setFiltereredAssets(filt);
} catch {}
} catch { }
};
filteredAssets();
}, [categoryAssets]);
@@ -135,7 +135,7 @@ const Assets: React.FC = () => {
const res = await getCategoryAsset(asset);
setCategoryAssets(res);
setFiltereredAssets(res);
} catch (error) {}
} catch (error) { }
}
};
return (
@@ -234,6 +234,7 @@ const Assets: React.FC = () => {
src={categoryInfo?.categoryImage || ""}
alt={category}
className="category-image"
draggable={false}
/>
<div className="category-name">{category}</div>
</div>