Skip to content

Commit 8420142

Browse files
authored
Swap order of neighborhood and review summary sections
1 parent cfbc063 commit 8420142

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

samples/ai-powered-summaries/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,27 +147,27 @@ function updateSummaryPanel(place: google.maps.places.Place) {
147147
);
148148
}
149149

150-
// --- 2. Neighborhood Summary ---
150+
// --- 2. Review Summary ---
151151
//@ts-ignore
152-
if (place.neighborhoodSummary?.overview?.content) {
152+
if (place.reviewSummary?.text) {
153153
createTab(
154-
'Neighborhood',
154+
'Reviews',
155155
//@ts-ignore
156-
place.neighborhoodSummary.overview.content,
156+
place.reviewSummary.text,
157157
//@ts-ignore
158-
place.neighborhoodSummary.disclosureText
158+
place.reviewSummary.disclosureText
159159
);
160160
}
161-
162-
// --- 3. Review Summary ---
161+
162+
// --- 3. Neighborhood Summary ---
163163
//@ts-ignore
164-
if (place.reviewSummary?.text) {
164+
if (place.neighborhoodSummary?.overview?.content) {
165165
createTab(
166-
'Reviews',
166+
'Neighborhood',
167167
//@ts-ignore
168-
place.reviewSummary.text,
168+
place.neighborhoodSummary.overview.content,
169169
//@ts-ignore
170-
place.reviewSummary.disclosureText
170+
place.neighborhoodSummary.disclosureText
171171
);
172172
}
173173

0 commit comments

Comments
 (0)