mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
testing 127.0.0.1 issue
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -134,12 +134,7 @@ const LandscapeCertCard = ({ courseTitle, issuedAt, courseUuid, badgeColor, badg
|
||||
a.click();
|
||||
URL.revokeObjectURL(url);
|
||||
} catch {
|
||||
toast("Could not download certificate.", {
|
||||
action: {
|
||||
label: "Close",
|
||||
onClick: () => {}
|
||||
}
|
||||
});
|
||||
toast("Could not download certificate.");
|
||||
} finally {
|
||||
setDownloading(false);
|
||||
}
|
||||
@@ -525,16 +520,22 @@ const ProfilePage = () => {
|
||||
}
|
||||
>
|
||||
{pendingModalCourse && (() => {
|
||||
const { pending_quizzes = [], pending_assessment } = pendingModalCourse;
|
||||
const { pending_quizzes = [], pending_assessment, assessment_configured = true } = pendingModalCourse;
|
||||
const hasQuizzes = pending_quizzes.length > 0;
|
||||
const hasAssessment = !!pending_assessment;
|
||||
if (!hasQuizzes && !hasAssessment) {
|
||||
if (!hasQuizzes && !hasAssessment && assessment_configured) {
|
||||
return (
|
||||
<p className="text-sm text-muted-foreground py-2">No pending items found.</p>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className="space-y-4 py-1">
|
||||
{!assessment_configured && (
|
||||
<p className="text-sm text-muted-foreground">
|
||||
You've finished all lessons, but this course's final assessment hasn't been set up yet.
|
||||
Check back once it's available — the course can't be marked complete until then.
|
||||
</p>
|
||||
)}
|
||||
{hasQuizzes && (
|
||||
<div>
|
||||
<p className="text-xs font-semibold uppercase tracking-wide text-muted-foreground mb-2">Unit Quizzes</p>
|
||||
|
||||
Reference in New Issue
Block a user