Skip to content

Commit 3c0c892

Browse files
committed
chore(academy): remove extraneous inline comments
1 parent 3e42143 commit 3c0c892

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

apps/sim/app/academy/(catalog)/[courseSlug]/components/course-progress.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export function CourseProgress({ course, courseSlug }: CourseProgressProps) {
2222
const { data: session } = useSession()
2323
const { data: fetchedCert } = useCourseCertificate(session ? course.id : undefined)
2424
const { mutate: issueCertificate, isPending, data: issuedCert, error } = useIssueCertificate()
25-
// Prefer the server-fetched cert (survives page refresh) over the in-session mutation result.
2625
const certificate = fetchedCert ?? issuedCert
2726

2827
const allLessons = course.modules.flatMap((m) => m.lessons)

apps/sim/app/academy/[courseSlug]/[lessonSlug]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export default function LessonPage({ params }: LessonPageProps) {
4242
const nextLesson = currentIndex < allLessons.length - 1 ? allLessons[currentIndex + 1] : null
4343

4444
const handleComplete = useCallback(() => setExerciseComplete(true), [])
45-
// For mixed lessons that have both an exercise and a quiz, the learner must complete both.
4645
const canAdvance =
4746
(!lesson?.exerciseConfig && !lesson?.quizConfig) ||
4847
(Boolean(lesson?.exerciseConfig) && Boolean(lesson?.quizConfig)

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/toolbar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ export const Toolbar = memo(
360360
return permitted.filter((b) => sandboxAllowedBlocks.includes(b.type))
361361
}, [filterBlocks, allBlocks, sandboxAllowedBlocks])
362362
const triggers = useMemo(() => {
363-
// Triggers are always hidden in sandbox mode regardless of availableBlocks.
364363
if (sandboxAllowedBlocks !== null) return []
365364
return filterBlocks(allTriggers)
366365
}, [filterBlocks, allTriggers, sandboxAllowedBlocks])

apps/sim/lib/academy/validation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ function checkRule(
8686
}
8787

8888
case 'custom': {
89-
// Custom validators run client-side via a registry; server always passes them.
90-
// Log a warning so content authors know if a custom validatorId is unrecognised.
9189
logger.warn('Custom validation rule encountered — no client registry implementation', {
9290
validatorId: rule.validatorId,
9391
})

0 commit comments

Comments
 (0)