Skip to content

Commit

Permalink
fix: hiding certificate banner for exec ed (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiram15 authored Apr 25, 2024
2 parents 150f28c + d90339f commit 24a9744
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const CertificateBanner = ({ cardId }) => {
const {
isAudit,
isVerified,
isExecEd2UCourse,
} = reduxHooks.useCardEnrollmentData(cardId);
const { isPassing } = reduxHooks.useCardGradeData(cardId);
const { isArchived } = reduxHooks.useCardCourseRunData(cardId);
Expand Down Expand Up @@ -52,7 +53,7 @@ export const CertificateBanner = ({ cardId }) => {
</Banner>
);
}
if (!isPassing) {
if (!isPassing && !isExecEd2UCourse) {
if (isAudit) {
return (
<Banner>
Expand Down

0 comments on commit 24a9744

Please sign in to comment.