From 035040d5b207a990e4b1ea37d3f4caa5cdb4068f Mon Sep 17 00:00:00 2001 From: Jon Petersson Date: Wed, 15 Nov 2023 13:52:14 +0100 Subject: [PATCH] Show success alert when making purchase from out of time --- .../View controllers/OutOfTime/OutOfTimeViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/MullvadVPN/View controllers/OutOfTime/OutOfTimeViewController.swift b/ios/MullvadVPN/View controllers/OutOfTime/OutOfTimeViewController.swift index 06b3dedb0bb3..a85b0de35c55 100644 --- a/ios/MullvadVPN/View controllers/OutOfTime/OutOfTimeViewController.swift +++ b/ios/MullvadVPN/View controllers/OutOfTime/OutOfTimeViewController.swift @@ -204,8 +204,8 @@ class OutOfTimeViewController: UIViewController, RootContainment { payment == event.payment else { return } switch event { - case .finished: - break + case let .finished(completion): + errorPresenter.showAlertForResponse(completion.serverResponse, context: .purchase) case let .failure(paymentFailure): switch paymentFailure.error {