@swift-food-services/catering-widget 0.2.0-beta.7 → 0.2.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23135,7 +23135,7 @@ function RestaurantMenuBrowser({
|
|
|
23135
23135
|
] }),
|
|
23136
23136
|
(() => {
|
|
23137
23137
|
if (isUnavailableForSession) return null;
|
|
23138
|
-
const restaurantLoc = restaurant.
|
|
23138
|
+
const restaurantLoc = restaurant.address?.location;
|
|
23139
23139
|
const userLoc = contactInfo?.latitude && contactInfo?.longitude ? { latitude: contactInfo.latitude, longitude: contactInfo.longitude } : null;
|
|
23140
23140
|
const distance = userLoc && restaurantLoc ? haversineDistanceMiles(userLoc.latitude, userLoc.longitude, restaurantLoc.latitude, restaurantLoc.longitude) : null;
|
|
23141
23141
|
const rating = restaurant.averageRating && parseFloat(restaurant.averageRating) > 0 ? parseFloat(restaurant.averageRating) : null;
|
|
@@ -23312,7 +23312,7 @@ function RestaurantMenuBrowser({
|
|
|
23312
23312
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3", children: [
|
|
23313
23313
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-gray-900", children: selectedRestaurant.restaurant_name }),
|
|
23314
23314
|
(() => {
|
|
23315
|
-
const restaurantLoc = selectedRestaurant.
|
|
23315
|
+
const restaurantLoc = selectedRestaurant.address?.location;
|
|
23316
23316
|
const userLoc = contactInfo?.latitude && contactInfo?.longitude ? { latitude: contactInfo.latitude, longitude: contactInfo.longitude } : null;
|
|
23317
23317
|
const distance = userLoc && restaurantLoc ? haversineDistanceMiles(userLoc.latitude, userLoc.longitude, restaurantLoc.latitude, restaurantLoc.longitude) : null;
|
|
23318
23318
|
const rating = selectedRestaurant.averageRating && parseFloat(selectedRestaurant.averageRating) > 0 ? parseFloat(selectedRestaurant.averageRating) : null;
|