iticket-seatingplan-dev 1.2.2 → 1.2.4

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.
@@ -79,7 +79,8 @@ const SeatingPlan = _ref => {
79
79
  s.loading = false;
80
80
  (cs || chosenSeat).circle.target.setStyle({
81
81
  fillColor: statusColors.sold
82
- })(cs || chosenSeat).seat.s = 2;
82
+ });
83
+ cs ? cs.seat.s = 2 : chosenSeat.seat.s = 2;
83
84
  const event = {
84
85
  type: 'error',
85
86
  details: {
@@ -91,6 +92,24 @@ const SeatingPlan = _ref => {
91
92
  };
92
93
  callbackFunction(event);
93
94
  setProcessing(false);
95
+ }
96
+ if ((response === null || response === void 0 ? void 0 : response.status) === 400) {
97
+ s.loading = false;
98
+ (cs || chosenSeat).circle.target.setStyle({
99
+ fillColor: statusColors.sold
100
+ });
101
+ cs ? cs.seat.s = 2 : chosenSeat.seat.s = 2;
102
+ const event = {
103
+ type: 'error',
104
+ details: {
105
+ error: {
106
+ code: 403,
107
+ message: "Oops, seems like you're trying to book tickets that are incompatible with other tickets in your cart."
108
+ }
109
+ }
110
+ };
111
+ callbackFunction(event);
112
+ setProcessing(false);
94
113
  } else if ((response === null || response === void 0 ? void 0 : response.status) === 429) {
95
114
  s.loading = false;
96
115
  (cs || chosenSeat).circle.target.setStyle({
@@ -252,7 +271,7 @@ const SeatingPlan = _ref => {
252
271
  map && area === areaId && map.target.setView([height * 0.015, width * 0.015], 6);
253
272
  setIsReloading(false);
254
273
  }).catch(error => {
255
- console.log(error);
274
+ // console.log(error)
256
275
  setError({
257
276
  response: {
258
277
  data: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "iticket-seatingplan-dev",
3
3
  "description": "Seating plan with FLEXi pricing",
4
4
  "author": "gedwyne",
5
- "version": "1.2.2",
5
+ "version": "1.2.4",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",