From 32c9e73ba9e2be80d50d5ff171cae4fc63455a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Thu, 19 Sep 2024 13:29:03 +0200 Subject: [PATCH] fix(SW-302): remove comments --- utils/facilityCards.ts | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/utils/facilityCards.ts b/utils/facilityCards.ts index e8143de74..724598453 100644 --- a/utils/facilityCards.ts +++ b/utils/facilityCards.ts @@ -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 }