summaryrefslogtreecommitdiff
path: root/client/components/map/_map.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/map/_map.jsx')
-rw-r--r--client/components/map/_map.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/map/_map.jsx b/client/components/map/_map.jsx
index 9f6684c..6134d44 100644
--- a/client/components/map/_map.jsx
+++ b/client/components/map/_map.jsx
@@ -6,7 +6,7 @@ import { useEffect, useState } from 'react';
import toast from 'react-hot-toast';
import { Legend } from './legend';
-export const Map = ({ user, zoom }) => {
+export const Map = ({ user, zoom, joinRoom }) => {
const [loading, setLoading] = useState(true);
const [position, setPosition] = useState({});
const [positionWatcher, setPositionWatcher] = useState();
@@ -39,7 +39,7 @@ export const Map = ({ user, zoom }) => {
maxZoom={19}
/>
<Legend />
- <Geoman joinRoom={console.log} userPos={position} user={user} />
+ <Geoman joinRoom={joinRoom} userPos={position} user={user} />
</MapContainer>
);
}