From bd276355e5b2090628d3ad10e95f2c118e883ab2 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 10 Sep 2025 15:57:43 +0700
Subject: <hafid> fix address override

---
 src/lib/maps/components/PinPointMap.jsx | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/lib/maps/components/PinPointMap.jsx')

diff --git a/src/lib/maps/components/PinPointMap.jsx b/src/lib/maps/components/PinPointMap.jsx
index 753f65c7..a9ead055 100644
--- a/src/lib/maps/components/PinPointMap.jsx
+++ b/src/lib/maps/components/PinPointMap.jsx
@@ -96,10 +96,15 @@ const PinpointLocation = ({
         const formattedAddress = data.results[0].formatted_address;
 
         const details = {
-          // street:
-          //   getAddressComponent(addressComponents, 'route') +
-          //   ' ' +
-          //   getAddressComponent(addressComponents, 'street_number'),
+          street: [
+            getAddressComponent(addressComponents, 'route'),
+            getAddressComponent(addressComponents, 'street_number'),
+            getAddressComponent(addressComponents, 'administrative_area_level_4'),
+            getAddressComponent(addressComponents, 'administrative_area_level_3'),
+            getAddressComponent(addressComponents, 'administrative_area_level_2'),
+            getAddressComponent(addressComponents, 'administrative_area_level_1'),
+            getAddressComponent(addressComponents, 'postal_code'),
+          ].filter(Boolean).join(', '),
           province: getAddressComponent(
             addressComponents,
             'administrative_area_level_1'
-- 
cgit v1.2.3

