diff --git a/client/js/tickets/wizard.js b/client/js/tickets/wizard.js index 1e5929d5a..8788352ae 100644 --- a/client/js/tickets/wizard.js +++ b/client/js/tickets/wizard.js @@ -1,8 +1,8 @@ // License: LGPL-3.0-or-later require('../cards/create') -var request = require('../common/super-agent-promise') -var create_card = require('../cards/create') -var format_err = require('../common/format_response_error') +const request = require('../common/super-agent-promise') +const create_card = require('../cards/create') +const format_err = require('../common/format_response_error') var path = '/nonprofits/' + app.nonprofit_id + '/events/' + appl.event_id + '/tickets' const R = require('ramda') @@ -126,7 +126,6 @@ appl.def('ticket_wiz', { set_tickets: function (form_obj) { hide_err() var tickets = [] - var total_amount = 0 var total_quantity = 0 for (var key in form_obj.tickets) { var ticket = form_obj.tickets[key]