Skip to content

Commit

Permalink
Merge pull request #1127 from abhijniua/Dev-2.0
Browse files Browse the repository at this point in the history
latitude and longitude issue resolved
  • Loading branch information
deepikaarora88 authored Jun 4, 2024
2 parents 3505691 + ab7da13 commit a052c74
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ const SelectDocument = React.memo(function MyComponent({
console.log('Longitude:', location.longitude);
setLatitude(location.latitude);
setLongitude(location.longitude);
// Continue with your existing code
{if (doc?.code === "SITEPHOTOGRAPH.ONE"){
sessionStorage.setItem("Latitude",location.latitude)
sessionStorage.setItem("Longitude",location.longitude)
}}


// Continue with your existing codezz
data = Object.fromEntries(e);
newArr = Object.values(data);
newArr = formData?.documents?.documents?.filter((ob) => ob.documentType === selectedDocument.code);
Expand Down Expand Up @@ -417,10 +423,10 @@ const SelectDocument = React.memo(function MyComponent({
{doc?.uploadedDocuments?.length && <DocumentsPreview isSendBackFlow={true} documents={doc?.uploadedDocuments} />}

{doc?.code === "SITEPHOTOGRAPH.ONE" && (
latitude !== null && longitude !== null ? (
(sessionStorage.getItem("Latitude") ? true : false ) ? (
<div>
<p>Latitude: {latitude}</p>
<p>Longitude: {longitude}</p>
<p>Latitude: {sessionStorage.getItem("Latitude")}</p>
<p>Longitude: {sessionStorage.getItem("Longitude")}</p>
{setIsNextButtonDisabled(false)} {/* Enable the "Next" button */}
</div>
):
Expand Down

0 comments on commit a052c74

Please sign in to comment.