Fix the ID update bug.

This commit is contained in:
Manuel Friedli 2023-04-16 01:01:23 +02:00
parent 46c16b8bc7
commit 4b300004b9
4 changed files with 8 additions and 11 deletions

View file

@ -6,7 +6,7 @@ export default function App() {
const [maze, setMaze] = useState({});
let title;
if (!!maze.grid) {
title = <h1>The Maze ({maze.width}x{maze.height})</h1>;
title = <h1>The Maze ({maze.width}x{maze.height}, ID: {maze.id})</h1>;
} else {
title = <span/>;
}