Skip to content

Commit

Permalink
fix: Student lounge
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Nov 19, 2024
1 parent 85d6977 commit 78b38af
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/app/student/map/data/booths.json
Original file line number Diff line number Diff line change
Expand Up @@ -2604,6 +2604,27 @@
],
"type": "Polygon"
}
},
{
"id": -1,
"type": "Feature",
"properties": {
"id": -1,
"location": "library",
"exhibitorId": -1
},
"geometry": {
"coordinates": [
[
[18.07184042631846, 59.3481834676023],
[18.0718393024826, 59.3481353394769],
[18.072262988512136, 59.34813419356843],
[18.072266360018375, 59.348182321695134],
[18.07184042631846, 59.3481834676023]
]
],
"type": "Polygon"
}
}
]
}
27 changes: 26 additions & 1 deletion src/components/shared/hooks/api/useExhibitors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,32 @@ export async function fetchExhibitors(
}
)
const result = await res.json()
return result as Exhibitor[]

return [
...(result as Exhibitor[]),
{
id: -1,
average_age: null,
benefits: [],
booths: [],
cities: "",
climate_compensation: false,
company_website: "",
competences: [],
employments: [],
fair_location: "",
flyer: "",
founded: null,
groups: [],
industries: [],
location_special: "",
locations: [],
name: "Student Lounge",
type: "Student Lounge",
values: [],
vyer_position: ""
} as Exhibitor
]
}

/**
Expand Down

0 comments on commit 78b38af

Please sign in to comment.