@nuskin/ns-shop 7.0.7-cx16-11056.1 → 7.0.7-cx16-11056.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.0.7-cx16-11056.1",
3
+ "version": "7.0.7-cx16-11056.2",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -152,7 +152,7 @@ async function getEventStatus(eventsToCheck = []) {
152
152
  eventsToCheck.forEach((eventName) => {
153
153
  let activeStatus = false;
154
154
  const ticketInfo = eventTicketInfoMap[eventName];
155
- if (ticketInfo.ticket) {
155
+ if (ticketInfo && ticketInfo.ticket) {
156
156
  const status = _decodeStatus(ticketInfo.ticket.status);
157
157
  if ((status.eventStatus === PRE_EVENT && status.preWaitTime <= 30000) ||
158
158
  status.eventStatus === IN_EVENT) {