diff --git a/frontend/src/app/q/card.tsx b/frontend/src/app/q/card.tsx index 5bd4b2a..2df3f89 100644 --- a/frontend/src/app/q/card.tsx +++ b/frontend/src/app/q/card.tsx @@ -3,6 +3,8 @@ import Oracle from "./oracle"; import Colour from "./colour"; import { useMemo } from "react"; +const LEGENDARY = "Legendary"; + export default function Card(props: { data: { name: string; @@ -26,10 +28,17 @@ export default function Card(props: { const sets = useMemo(() => { return props.data.sets.map((x) => x.toUpperCase()).join(", "); - }, [props.data]); + }, [props.data.sets]); + + const isLegendary = useMemo( + () => props.data.types.includes(LEGENDARY), + [props.data.types], + ); return ( -
+

{props.data.name}