From 053c801a8c43688c2c4eec6800368898a81bfc39 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Thu, 31 Oct 2024 16:55:07 +0700
Subject: integrasi google maps service

---
 src/lib/maps/components/PinPointMap.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 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 1fa40036..201fdeb4 100644
--- a/src/lib/maps/components/PinPointMap.jsx
+++ b/src/lib/maps/components/PinPointMap.jsx
@@ -26,7 +26,7 @@ const PinpointLocation = () => {
     libraries: ['places'],
   });
 
-  const { addressMaps, setAddressMaps, selectedPosition, setSelectedPosition } =
+  const { addressMaps, setAddressMaps, selectedPosition, setSelectedPosition, setDetailAddress } =
     useMaps();
 
   const [tempAddress, setTempAddress] = useState('');
@@ -84,7 +84,7 @@ const PinpointLocation = () => {
           ),
           postalCode: getAddressComponent(addressComponents, 'postal_code'),
         };
-        setValue('state', details?.province);
+        setDetailAddress(details);
         console.log(details);
         setTempAddress(data.results[0].formatted_address);
       }
-- 
cgit v1.2.3

