diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index 2f3a65812..46cbe43c9 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -27,9 +27,12 @@ class Controller extends Section { } get ticketState() { - if (!this.ticket) return null; + const ticket = this.ticket; + if (!ticket) return null; - return this.ticket.ticketState.state.code; + const ticketState = ticket.ticketState; + + return ticketState && ticketState.state.code; } getSaleTotal(sale) {