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 #349 from admin-ch/bugfix/use-correct-icon
Browse files Browse the repository at this point in the history
use correct icon for expired case
  • Loading branch information
stmitt authored Jun 28, 2022
2 parents 12f49d3 + 720c14d commit c5cfad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/eu-digital-green-certificates/json-logic-swift",
"state" : {
"revision" : "3898636b43b62e571849790f74485dd1504ee785",
"version" : "1.2.3"
"revision" : "10580f69c911df26736ebf31b4eaf629f2972d10",
"version" : "1.2.4"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions Wallet/Logic/Error/WalletErrors+CC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ extension VerificationError {
func icon(with color: UIColor? = nil) -> UIImage? {
switch self {
case .signature, .typeInvalid, .unknownMode, .lightUnsupported: return UIImage(named: "ic-info-alert")?.ub_image(with: color ?? UIColor.cc_grey)
case .revocation: return UIImage(named: "ic-info-alert")?.ub_image(with: color ?? UIColor.cc_grey)
case .otherNationalRules: return UIImage(named: "ic-info-alert")?.ub_image(with: color ?? UIColor.cc_grey)
case .expired, .signatureExpired:
case .revocation, .otherNationalRules, .expired:
return UIImage(named: "ic-info-alert")?.ub_image(with: color ?? UIColor.cc_grey)
case .signatureExpired:
if let c = color {
return UIImage(named: "ic-invalid")?.ub_image(with: c)
} else {
Expand Down

0 comments on commit c5cfad9

Please sign in to comment.