Merge pull request #303 from James-Sangalli/remove-dup-transfer-import-window

Fix: remove redundant prompt to import free transfers
pull/305/head
James Sangalli 7 years ago committed by GitHub
commit 15f5134b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Trust/Market/Coordinators/UniversalLinkCoordinator.swift

@ -96,14 +96,6 @@ class UniversalLinkCoordinator: Coordinator {
let parameters = createHTTPParametersForPaymentServer(signedOrder: signedOrder, isForTransfer: true)
let query = Constants.paymentServer
if let viewController = delegate?.viewControllerForPresenting(in: self) {
UIAlertController.alert(title: nil, message: R.string.localizable.aClaimTicketPrompt(),
alertButtonTitles: [R.string.localizable.aClaimTicketImportButtonTitle(), R.string.localizable.cancel()],
alertButtonStyles: [.default, .cancel], viewController: viewController) {
//ok else cancel
if $0 == 0 {
self.importUniversalLink(query: query, parameters: parameters)
}
}
if let vc = importTicketViewController {
vc.query = query
vc.parameters = parameters

Loading…
Cancel
Save