diff --git a/react/List.tsx b/react/List.tsx index e00d42b..ccd6f57 100644 --- a/react/List.tsx +++ b/react/List.tsx @@ -124,12 +124,11 @@ const StoreList: FunctionComponent = ({ const { latitude, longitude } = firstResult.address.location 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,