diff --git a/src/components/Map.tsx b/src/components/Map.tsx index 7f729bc..9538c19 100644 --- a/src/components/Map.tsx +++ b/src/components/Map.tsx @@ -25,7 +25,6 @@ const Map: React.FC = ({ onClick }) => { if (!isMapLoaded) { return ; } - return ( = ({ onClick }) => { defaultCenter={new navermaps.LatLng(37.3595704, 127.105399)} defaultZoom={15} > - {restaurants.map((restaurant, index) => ( - - ))} + {restaurants && + restaurants.map((restaurant, index) => ( + + ))} );