muba-posting 6.0.18 → 6.0.20

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.
package/Posting.js CHANGED
@@ -371,12 +371,13 @@ export default class Posting extends React.Component {
371
371
  goBack = async () => {
372
372
  if (this.state.prevViews.length === 0 || this.state.view === Views.PREVIEW) {
373
373
  this.props.navigation.dispatch(state => {
374
- state.routes.splice(state.routes.length - 1, 1);
375
- const routes = state.routes.map(r => { return { name: r.name } });
374
+ const routes = [...state.routes];
375
+
376
+ routes.pop();
376
377
 
377
378
  return CommonActions.reset({
378
- routes,
379
- index: routes.length - 1
379
+ index: routes.length - 1,
380
+ routes: routes
380
381
  });
381
382
  });
382
383
  } else {
package/Publish2b.js CHANGED
@@ -11,6 +11,7 @@ import fontelloConfig from './fonts/config.json';
11
11
  const FontAwesomeIcon = createIconSetFromFontello(fontelloConfig);
12
12
 
13
13
  const GET_CHECK_ZONE = { method: 'GET', url: '/controller/posting/check-zone' };
14
+ const LOAD_LOCATIONS = { method: 'GET', url: '/controller/countries/{countryCode}/locations' };
14
15
 
15
16
  export default class Publish2b extends React.Component {
16
17
  constructor(props) {
@@ -153,7 +154,7 @@ export default class Publish2b extends React.Component {
153
154
  }
154
155
 
155
156
  async nextStep() {
156
- if (this.validateForm()) {
157
+ if (await this.validateForm()) {
157
158
  const responseCheckZone = await this.props.request(this.props.context, GET_CHECK_ZONE, {
158
159
  businessId: this.props.businessId,
159
160
  cityId: this.props.postingAd.city
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "6.0.18",
3
+ "version": "6.0.20",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {