From 1ae08b95e16706aacf35fead5dc80bd6a2e85891 Mon Sep 17 00:00:00 2001 From: Douglas Hall Date: Wed, 20 Mar 2019 10:47:21 -0400 Subject: [PATCH] Default to unknown certificate type translation string. --- src/components/ProfilePage/Certificates.jsx | 2 +- src/components/ProfilePage/Certificates.messages.jsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/ProfilePage/Certificates.jsx b/src/components/ProfilePage/Certificates.jsx index 6a99a0c..0862d92 100644 --- a/src/components/ProfilePage/Certificates.jsx +++ b/src/components/ProfilePage/Certificates.jsx @@ -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'], ))}

{courseDisplayName}

diff --git a/src/components/ProfilePage/Certificates.messages.jsx b/src/components/ProfilePage/Certificates.messages.jsx index 9be1cc4..ef2aa2b 100644 --- a/src/components/ProfilePage/Certificates.messages.jsx +++ b/src/components/ProfilePage/Certificates.messages.jsx @@ -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;