Fix game state on refresh.

There was accidentally a second layer of callback here. I'm not sure why
it worked. I think the lambda being returned was being used as the
cleanup function?
This commit is contained in:
Dan Albert
2022-03-01 20:44:32 -08:00
parent 625f36c780
commit 6d29bfdf65
2 changed files with 22 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ import "./App.css";
import { LatLng } from "leaflet";
import LiberationMap from "./components/liberationmap";
import { useInitialGameState } from "./api/useInitialGameState";
import useInitialGameState from "./api/useInitialGameState";
function App() {
const mapCenter: LatLng = new LatLng(25.58, 54.9);