Skip to content

Commit

Permalink
review rating mapping added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Oct 16, 2024
1 parent cb1978a commit d002378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/moredetailsaddress/moredetailsaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function getStateCity(lat, lng) {
for (let j = 0; j < results.length; j++) {
if (results[j].place_id) {
reviewRating = await getReviewRating(results[j].place_id);
if (reviewRating.result.reviews && reviewRating.result?.opening_hours?.weekday_text) {
if (reviewRating?.result?.reviews && reviewRating.result?.opening_hours?.weekday_text) {
setLocationObj.review = reviewRating.result.reviews;
setLocationObj.working = reviewRating.result.opening_hours.weekday_text;
console.log(reviewRating);
Expand Down

0 comments on commit d002378

Please sign in to comment.