fix(SW-302): remove comments

This commit is contained in:
Matilda Landström
2024-09-19 13:29:03 +02:00
parent 72c961eabf
commit 32c9e73ba9

View File

@@ -141,21 +141,12 @@ export function getRestaurantHeading(amenities: Amenities): RestaurantHeadings {
)
const hasRestaurant = amenities.some((facility) => facility.id == 1383) // restaurant id
//let href,
let title: RestaurantHeadings
if (hasBar && hasRestaurant) {
//href = restaurantAndBar
title = RestaurantHeadings.restaurantAndBar
return RestaurantHeadings.restaurantAndBar
} else if (hasBar) {
//href = bar
title = RestaurantHeadings.bar
return RestaurantHeadings.bar
} else if (hasRestaurant) {
//href = restaurant
title = RestaurantHeadings.restaurant
} else {
//href = breakfastRestaurant
title = RestaurantHeadings.breakfastRestaurant
return RestaurantHeadings.restaurant
}
return title
return RestaurantHeadings.breakfastRestaurant
}