Skip to content

Commit

Permalink
Update map.jsx
Browse files Browse the repository at this point in the history
fix zoom useState
  • Loading branch information
MagdalenaKuch authored Oct 11, 2024
1 parent f9bda3a commit 5518bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Map/map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Map() {
const mapContainer = useRef(null);
const map = useRef(null);
const center = { lng: 139.753, lat: 35.6844 };
const [zoom] = useState(14);
const zoom = 14;
maptilersdk.config.apiKey = configData.MAPTILER_API_KEY;

useEffect(() => {
Expand Down

0 comments on commit 5518bf9

Please sign in to comment.