diff --git a/src/CotMG/ui/ActiveFragmentSummary.tsx b/src/CotMG/ui/ActiveFragmentSummary.tsx index 8ba28cf43..5eb8c4c03 100644 --- a/src/CotMG/ui/ActiveFragmentSummary.tsx +++ b/src/CotMG/ui/ActiveFragmentSummary.tsx @@ -66,7 +66,7 @@ export function ActiveFragmentSummary(props: IProps): React.ReactElement { {summary.map((entry) => { return ( - + {entry.coordinate.map((coord) => { diff --git a/src/CotMG/ui/DummyGrid.tsx b/src/CotMG/ui/DummyGrid.tsx index 80842e9aa..8e6a3dc17 100644 --- a/src/CotMG/ui/DummyGrid.tsx +++ b/src/CotMG/ui/DummyGrid.tsx @@ -13,7 +13,6 @@ interface IProps { export function DummyGrid(props: IProps): React.ReactElement { const gift = new DummyGift(props.width, props.height, props.fragments); - const activeGrid = calculateGrid(gift); const ghostGrid = zeros([props.width, props.height]); return ( @@ -21,7 +20,6 @@ export function DummyGrid(props: IProps): React.ReactElement { undefined} diff --git a/src/CotMG/ui/Grid.tsx b/src/CotMG/ui/Grid.tsx index c55f43dba..78dd13b98 100644 --- a/src/CotMG/ui/Grid.tsx +++ b/src/CotMG/ui/Grid.tsx @@ -32,7 +32,7 @@ function randomColor(fragment: ActiveFragment): string { } export function Grid(props: IProps): React.ReactElement { - const activeGrid = calculateGrid(props.gift) + const activeGrid = calculateGrid(props.gift); function color(worldX: number, worldY: number): string { if (props.ghostGrid[worldX][worldY] && activeGrid[worldX][worldY]) return "red";