fix(disconnect from map issue): require to be connected to reach /map

This commit is contained in:
Laurian-Dufrechou
2023-05-18 17:31:54 +02:00
parent b1b5c8720c
commit 61df566dcf
4 changed files with 65 additions and 49 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export default function Map() {
]);
const [geolocationError, setGeolocationError] = useState(false);
const { data: session, status } = useSession();
const { data: session, status } = useSession({ required: true });
const [listBars, setListBars] = useState({} as unknown as any);
const {