iticket-seatingplan-dev 1.0.30 → 1.0.31

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.
@@ -67,7 +67,26 @@ const SeatingPlan = _ref => {
67
67
  'content-type': 'application/json',
68
68
  'basket-key': sessionId
69
69
  }
70
- }).then(response => response.json()).then(response => {
70
+ }).then(response => {
71
+ if ((response === null || response === void 0 ? void 0 : response.status) === 429 || (response === null || response === void 0 ? void 0 : response.status) === 403) {
72
+ chosenSeat.circle.target.setStyle({
73
+ fillColor: statusColors.sold
74
+ });
75
+ chosenSeat.seat.s = 2;
76
+ const event = {
77
+ type: 'error',
78
+ details: {
79
+ error: {
80
+ code: 403,
81
+ message: "The seat you're trying to book is no longer available."
82
+ }
83
+ }
84
+ };
85
+ callbackFunction(event);
86
+ setProcessing(false);
87
+ }
88
+ return response.json();
89
+ }).then(response => {
71
90
  s.s = 4;
72
91
  s.bookedPrice = price;
73
92
  chosenSeat.circle.target.setStyle({
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.0.30",
5
+ "version": "1.0.31",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",