diff --git a/components/GridRep/index.tsx b/components/GridRep/index.tsx index 710fa1b6..7851731f 100644 --- a/components/GridRep/index.tsx +++ b/components/GridRep/index.tsx @@ -39,11 +39,13 @@ const GridRep = (props: Props) => { } function generateMainhandImage() { - return {mainhand?.name.en} + return (mainhand) ? + {mainhand?.name.en} : '' } function generateGridImage(position: number) { - return {weapons[position]?.name.en} + return (weapons[position]) ? + {weapons[position]?.name.en} : '' } return (