From 42cf50ee7521bd751f4d0f0798276e548bb83fee Mon Sep 17 00:00:00 2001
From: Logan Hunt <loganhunt@simponic.xyz>
Date: Wed, 30 Mar 2022 22:15:20 -0600
Subject: Working

---
 client/components/map/_map.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'client/components/map/_map.jsx')

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>
     );
   }
-- 
cgit v1.2.3-70-g09d2

