Default to unknown certificate type translation string.

This commit is contained in:
Douglas Hall
2019-03-20 10:47:21 -04:00
committed by Douglas Hall
parent 0fc8990e08
commit 1ae08b95e1
2 changed files with 6 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ class Certificates extends React.Component {
{intl.formatMessage(get(
messages,
`profile.certificates.types.${certificateType}`,
messages['profile.certificates.types.verified'],
messages['profile.certificates.types.unknown'],
))}
</p>
<h4 className="certificate-title">{courseDisplayName}</h4>

View File

@@ -21,6 +21,11 @@ const messages = defineMessages({
defaultMessage: 'Professional Certificate',
description: 'A type of certificate a user may have earned',
},
'profile.certificates.types.unknown': {
id: 'profile.certificates.types.unknown',
defaultMessage: 'Certificate',
description: 'The string to display when a certificate is of an unknown type',
},
});
export default messages;