iticket-seatingplan-dev 1.1.3 → 1.1.5

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.
@@ -74,9 +74,9 @@ const SeatingPlan = _ref => {
74
74
  }).then(response => {
75
75
  if ((response === null || response === void 0 ? void 0 : response.status) === 403) {
76
76
  ;
77
- (chosenSeat || cs).circle.target.setStyle({
77
+ (cs || chosenSeat).circle.target.setStyle({
78
78
  fillColor: statusColors.sold
79
- })(chosenSeat || cs).seat.s = 2;
79
+ })(cs || chosenSeat).seat.s = 2;
80
80
  const event = {
81
81
  type: 'error',
82
82
  details: {
@@ -90,7 +90,7 @@ const SeatingPlan = _ref => {
90
90
  setProcessing(false);
91
91
  } else if ((response === null || response === void 0 ? void 0 : response.status) === 429) {
92
92
  ;
93
- (chosenSeat || cs).circle.target.setStyle({
93
+ (cs || chosenSeat).circle.target.setStyle({
94
94
  fillColor: statusColors.available
95
95
  });
96
96
  const event = {
@@ -105,9 +105,10 @@ const SeatingPlan = _ref => {
105
105
  callbackFunction(event);
106
106
  setProcessing(false);
107
107
  } else {
108
+ // console.log(chosenSeat.seat.ssId, cs?.seat.ssId)
108
109
  s.s = 4;
109
110
  s.bookedPrice = price;
110
- (chosenSeat || cs).circle.target.setStyle({
111
+ (cs || chosenSeat).circle.target.setStyle({
111
112
  fillColor: statusColors.booked
112
113
  });
113
114
  setProcessing(false);
@@ -122,7 +123,7 @@ const SeatingPlan = _ref => {
122
123
  }
123
124
  }).catch(error => {
124
125
  ;
125
- (chosenSeat || cs).circle.target.setStyle({
126
+ (cs || chosenSeat).circle.target.setStyle({
126
127
  fillColor: statusColors.available
127
128
  });
128
129
  const event = {
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.1.3",
5
+ "version": "1.1.5",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "iticket",