File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src-ts/tools/learn/free-code-camp Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,11 @@ const FreeCodeCamp: FC<{}> = () => {
279
279
// the cert is also completed, which redirects the user to the cert page.
280
280
// So the survey needs to be delayed so that it appears on the completed
281
281
// 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.
282
287
if ( progress . certificationProgressPercentage >= 100 ) {
283
288
setTimeout ( async ( ) => {
284
289
surveyTriggerForUser ( surveyTrigger , profile ?. userId )
You can’t perform that action at this time.
0 commit comments