Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Jun 5, 2024
1 parent 08ea0eb commit e155350
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FE/src/components/map/GoogleMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function GoogleMap() {
const markerInstances: google.maps.Marker[] = [];
console.log(accommodations);
accommodations.forEach((accommodation) => {
const { lat, lng } = accommodation.accomodation.location.point;
const [lat, lng] = accommodation.accomodation.location.point;
console.log(accommodation.accomodation.name, lat, lng);
const markerInstance = new google.maps.Marker({
position: { lat, lng },
Expand Down
2 changes: 1 addition & 1 deletion FE/src/components/map/fetchAccommodation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function fetchAccommodations(): Promise<AccommodationWithPrice[]> {
`Failed to fetch accommodations: ${response.status} ${response.statusText}`
);
}
console.log(response);
console.log(response.json());
return await response.json();
} catch (error) {
console.error("Error fetching accommodations:", error);
Expand Down
2 changes: 1 addition & 1 deletion FE/src/components/map/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface Location {
address: string;
zipCode: number;
point: { lat: number; lng: number };
point: [number, number];
}

export interface Accommodation {
Expand Down

0 comments on commit e155350

Please sign in to comment.