From f018e05ec4d1e6723677d5c2af8be06495d5c3ef Mon Sep 17 00:00:00 2001 From: Jack Newcombe Date: Thu, 29 Aug 2024 14:32:04 +0100 Subject: [PATCH] Add explicit returns to appease Xcode 14 --- .../PrimerResultPaymentStatusViewModel.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/PrimerSDK/Classes/User Interface/Components/PrimerCustomResult/PrimerResultPaymentStatusViewModel.swift b/Sources/PrimerSDK/Classes/User Interface/Components/PrimerCustomResult/PrimerResultPaymentStatusViewModel.swift index 73fbe4d99..159fd927d 100644 --- a/Sources/PrimerSDK/Classes/User Interface/Components/PrimerCustomResult/PrimerResultPaymentStatusViewModel.swift +++ b/Sources/PrimerSDK/Classes/User Interface/Components/PrimerCustomResult/PrimerResultPaymentStatusViewModel.swift @@ -32,11 +32,11 @@ class PrimerResultPaymentStatusViewModel: ObservableObject { var subtitle: String { switch paymentStatus { case .success: - Strings.ResultView.Subtitle.successful + return Strings.ResultView.Subtitle.successful case .failed: - Strings.ResultView.Subtitle.failed + return Strings.ResultView.Subtitle.failed case .cancelled: - Strings.ResultView.Subtitle.cancelled + return Strings.ResultView.Subtitle.cancelled } }