Merge pull request #358 from James-Sangalli/fix-ticket-match-not-appearing-when-importing

Fix: ticket match not appearing when importing
pull/362/head
James Sangalli 7 years ago committed by GitHub
commit c3afd9bc9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Trust/Market/ViewControllers/ImportTicketViewController.swift
  2. 5
      Trust/Market/ViewModels/ImportTicketViewControllerViewModel.swift

@ -166,6 +166,7 @@ class ImportTicketViewController: UIViewController {
ticketView.categoryLabel.text = viewModel.category
ticketView.timeLabel.text = viewModel.time
ticketView.teamsLabel.text = viewModel.teams
ticketView.matchLabel.text = viewModel.match
ticketView.dateImageView.isHidden = !viewModel.showTicketRowIcons
ticketView.seatRangeImageView.isHidden = !viewModel.showTicketRowIcons

@ -112,6 +112,11 @@ struct ImportTicketViewControllerViewModel {
}
}
var match: String {
guard let ticketHolder = ticketHolder else { return "" }
return "M\(ticketHolder.match)"
}
var venue: String {
guard let ticketHolder = ticketHolder else { return "" }
if case let .validating = state {

Loading…
Cancel
Save