Skip to content

Commit 67defd5

Browse files
TCA-790 comments
1 parent 181918f commit 67defd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src-ts/tools/learn/free-code-camp/FreeCodeCamp.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ const FreeCodeCamp: FC<{}> = () => {
279279
// the cert is also completed, which redirects the user to the cert page.
280280
// So the survey needs to be delayed so that it appears on the completed
281281
// cert page instead of the current lesson.
282+
283+
// NOTE: we can't use the cert's status here bc it doesn't get set to
284+
// completed until the UI notices the cert is complete and initiates
285+
// the completion. And we have to use >= instead of === because it's
286+
// possible TCA data isn't in sync w/the latest FCC curriculum.
282287
if (progress.certificationProgressPercentage >= 100) {
283288
setTimeout(async () => {
284289
surveyTriggerForUser(surveyTrigger, profile?.userId)

0 commit comments

Comments
 (0)