Skip to content

Commit

Permalink
Fix bug with paraments in handleAirbnbSearch function
Browse files Browse the repository at this point in the history
  • Loading branch information
grabinskij committed Dec 4, 2024
1 parent fb7a440 commit 3d8367e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/SearchPanel/SearchPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ const SearchPanel = () => {
};

// Search handler for desktop
const handleAirbnbSearch = ({ location: region, checkIn, checkOut, guests }) => {
const handleAirbnbSearch = ({ location: region, checkIn, checkOut, adults, children, infants, pets }) => {
const searchQueries = {
region,
checkIn,
checkOut,
guests,
adults,
children,
infants,
pets
};

if (region) {
Expand Down

0 comments on commit 3d8367e

Please sign in to comment.