Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #260 from admin-ch/bugfix/remove_is_light_error
Browse files Browse the repository at this point in the history
Removes error codes from check screen in light mode unsupported case
  • Loading branch information
zimmermannubique authored Dec 10, 2021
2 parents 1ea8fbb + 20629a9 commit 48f307b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Verifier/Screens/Check/VerifyCheckContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 48f307b

Please sign in to comment.