We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7cd8b commit 676f832Copy full SHA for 676f832
1 file changed
app/components/SHCCard.js
@@ -114,6 +114,10 @@ const VACCINE_CODES = {
114
801 : "AS03 adjuvant"
115
}
116
117
+const TRUST_REGISTRY = {
118
+ "https://myvaccinerecord.cdph.ca.gov/creds": "State of California",
119
+ "https://api.cvshealth.com/smarthealth/v1/card": "CVS Health",
120
+}
121
122
export default class SHCCard extends Component {
123
@@ -138,8 +142,9 @@ export default class SHCCard extends Component {
138
142
139
143
140
144
issuerName = (card) => {
141
- if (card.pub_key.toLowerCase() === "https://myvaccinerecord.cdph.ca.gov/creds")
- return "State of California"
145
+ if (TRUST_REGISTRY[card.pub_key.toLowerCase()]) {
146
+ return TRUST_REGISTRY[card.pub_key.toLowerCase()]
147
+ }
148
return card.pub_key.toLowerCase();
149
150
0 commit comments