testing 127.0.0.1 issue

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-07 13:40:07 +08:00
parent 244aa607f7
commit 6624c0d27f
62 changed files with 662 additions and 1889 deletions
+9 -8
View File
@@ -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>