Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirama authored Aug 23, 2024
1 parent de152dd commit aed3ef8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions react/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ const StoreList: FunctionComponent<WrappedComponentProps & Props> = ({

const { latitude, longitude } = firstResult.address.location

const ofGeoCoordinates = ofData?.orderForm?.shippingData?.address?.geoCoordinates
const ofGeoCoordinates =
ofData?.orderForm?.shippingData?.address?.geoCoordinates

const center =
ofGeoCoordinates && ofGeoCoordinates.length > 0
? ofGeoCoordinates
: [longitude || long, latitude || lat]
const center =
ofGeoCoordinates && ofGeoCoordinates.length > 0
? ofGeoCoordinates
: [longitude || long, latitude || lat]

setState({
...state,
Expand Down

0 comments on commit aed3ef8

Please sign in to comment.