muba-posting 7.0.7 → 7.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Publish2.js +6 -4
  2. package/package.json +1 -1
package/Publish2.js CHANGED
@@ -76,30 +76,32 @@ export default class Publish2 extends React.Component {
76
76
  this.props.postingAd.exactlyLocated = false;
77
77
  this.props.postingAd.latitude = null;
78
78
  this.props.postingAd.longitude = null;
79
+ } else if (!this.props.fullPosting) {
80
+ validateLocation = true;
79
81
  }
80
82
 
81
83
  if (responseJson.region !== undefined) {
82
84
  this.props.postingAd.region = responseJson.region;
83
- } else {
85
+ } else if (this.props.fullPosting) {
84
86
  this.props.postingAd.region = null;
85
87
  }
86
88
 
87
89
  if (responseJson.city !== undefined) {
88
90
  this.props.postingAd.city = responseJson.city;
89
- } else {
91
+ } else if (this.props.fullPosting) {
90
92
  this.props.postingAd.city = null;
91
93
  }
92
94
 
93
95
  if (responseJson.district !== undefined) {
94
96
  this.props.postingAd.district = responseJson.district;
95
- } else {
97
+ } else if (this.props.fullPosting) {
96
98
  this.props.postingAd.district = null;
97
99
  }
98
100
 
99
101
  if (responseJson.town !== undefined) {
100
102
  this.props.postingAd.town = responseJson.town;
101
103
  validateLocation = true;
102
- } else {
104
+ } else if (this.props.fullPosting) {
103
105
  this.props.postingAd.town = null;
104
106
  }
105
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {