Delete unused getCardName function
This commit is contained in:
parent
112d509274
commit
bbe5eb813f
|
@ -117,11 +117,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function to get the name of the parent category
|
// Helper function to get the name of the parent category
|
||||||
function getCardName(cardId: number) {
|
|
||||||
if (cardId === 0) return "None";
|
|
||||||
const card = cards.find((card) => card.id === cardId);
|
|
||||||
return card ? card.name : "Unknown";
|
|
||||||
}
|
|
||||||
function getTypeColor(typeId: number) {
|
function getTypeColor(typeId: number) {
|
||||||
if (typeId === 0) return "None";
|
if (typeId === 0) return "None";
|
||||||
const type = types.find((card) => card.id === typeId);
|
const type = types.find((card) => card.id === typeId);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user