iticket-seatingplan-dev 1.4.4 → 1.4.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.
|
@@ -29,7 +29,8 @@ const SeatingPlan = _ref => {
|
|
|
29
29
|
baseUrl,
|
|
30
30
|
countryCode,
|
|
31
31
|
connectedShowings,
|
|
32
|
-
areaName
|
|
32
|
+
areaName,
|
|
33
|
+
promoCode
|
|
33
34
|
} = _ref;
|
|
34
35
|
const [initialiseMessage, setInitialiseMessage] = (0, _react.useState)("Initialising seating plan...");
|
|
35
36
|
const [isReloading, setIsReloading] = (0, _react.useState)(false);
|
|
@@ -249,7 +250,7 @@ const SeatingPlan = _ref => {
|
|
|
249
250
|
setInitialiseMessage("Initialising seating plan...");
|
|
250
251
|
fetch( // `http://localhost:3155/api/legacy/shop/events/4230/4639/showings/102359/tickets/allocated/1603`,
|
|
251
252
|
// `${baseUrl}/legacy/shop/events/${eventId}/${eventVenueId}/showings/${showingId}/tickets/allocated/${areaId}`,
|
|
252
|
-
"".concat(baseUrl, "/legacy/").concat(countryCode, "/shop/events/").concat(eventId, "/").concat(eventVenueId, "/showings/").concat(showingId, "/tickets/allocated/").concat(areaId), {
|
|
253
|
+
"".concat(baseUrl, "/legacy/").concat(countryCode, "/shop/events/").concat(eventId, "/").concat(eventVenueId, "/showings/").concat(showingId, "/tickets/allocated/").concat(areaId).concat(promoCode ? "?promo=".concat(promoCode) : ""), {
|
|
253
254
|
headers: {
|
|
254
255
|
"basket-key": sessionId,
|
|
255
256
|
Authorization: "Bearer ".concat(apiKey)
|