From 20629a9c88adac5b27189a4b0d7f1f29fe2676a3 Mon Sep 17 00:00:00 2001 From: Marco Zimmermann Date: Fri, 10 Dec 2021 16:13:12 +0100 Subject: [PATCH] removes error codes from check screen in light mode unsupported case Signed-off-by: Marco Zimmermann --- .../Check/VerifyCheckContentViewController.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Verifier/Screens/Check/VerifyCheckContentViewController.swift b/Verifier/Screens/Check/VerifyCheckContentViewController.swift index dd5e1c17..4f4a28aa 100644 --- a/Verifier/Screens/Check/VerifyCheckContentViewController.swift +++ b/Verifier/Screens/Check/VerifyCheckContentViewController.swift @@ -225,9 +225,13 @@ class VerifyCheckContentViewController: ViewController { statusView.set(text: text, backgroundColor: .cc_redish, icon: UIImage(named: "ic-info-alert-red")) } - let codes = errorCodes.joined(separator: ", ") - if codes.count > 0 { - errorLabel.text = codes + if isLightUnsupported { + errorLabel.text = nil + } else { + let codes = errorCodes.joined(separator: ", ") + if codes.count > 0 { + errorLabel.text = codes + } } case let .retry(error, errorCodes):