Merged in feat/SW-3163-remove-openinghours-name (pull request #2735)
feat(SW-3163): update opening hours schema name/nameEnglish * feat(SW-3163): remove name * fix(SW-3163): update schemas Approved-by: Erik Tiekstra
This commit is contained in:
@@ -30,10 +30,7 @@ export default function BreakfastAccordionItem({
|
||||
const openingHours = restaurants
|
||||
?.map((restaurant) => {
|
||||
const breakfastDetail = restaurant.openingDetails.find(
|
||||
(details) =>
|
||||
details.openingHours.name === "Breakfast" ||
|
||||
details.openingHours.name ===
|
||||
intl.formatMessage({ defaultMessage: "Breakfast" })
|
||||
(details) => details.openingHours.nameEnglish === "Breakfast"
|
||||
)
|
||||
return breakfastDetail
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user