Fix the ID update bug.
This commit is contained in:
parent
46c16b8bc7
commit
4b300004b9
4 changed files with 8 additions and 11 deletions
|
|
@ -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/>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue