Skip to content

Commit

Permalink
fix: fix image url and remove organization name
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Nov 16, 2023
1 parent 17bba3e commit a60bb3f
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/profile/forms/Badges.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Badges extends React.Component {
this.props.openHandler(this.props.formId);
}

renderBadge({ badge_class, created, assertion_url }) {
renderBadge({ badge_class, created, assertion_url, image_url }) {
const { intl } = this.props;

return (
Expand All @@ -69,24 +69,6 @@ class Badges extends React.Component {
</p>
</>
)}
{badge_class && badge_class.course_id && (
<>
<p className="small mb-0">
<FormattedMessage
id="profile.badge.organization.label"
defaultMessage={intl.formatMessage(
messages["profile.badge.organization.label"]
)}
/>
</p>
<p className="h6 mb-4">
{badge_class.course_id.substring(
badge_class.course_id.indexOf(":") + 1,
badge_class.course_id.indexOf("+")
)}
</p>
</>
)}
<p className="small mb-2">
<FormattedMessage
id="profile.badge.completion.date.label"
Expand Down

0 comments on commit a60bb3f

Please sign in to comment.