File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src-ts/tools/learn/free-code-camp Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ import { FccFrame } from './fcc-frame'
4747import { FccSidebar } from './fcc-sidebar'
4848import { TitleNav } from './title-nav'
4949import styles from './FreeCodeCamp.module.scss'
50- import { LearnConfig } from '../learn-config'
5150
5251const FreeCodeCamp : FC < { } > = ( ) => {
5352
@@ -281,9 +280,12 @@ const FreeCodeCamp: FC<{}> = () => {
281280
282281 // This is the last lesson to be completed in the first module completed,
283282 // so it's time to trigger the survey
283+
284284 // NOTE: We have to add a delay, otherwise the survey closes when the user
285285 // is automatically redirected to the next lesson.
286- setShowSurvey ( certificationParam )
286+ setTimeout ( ( ) => {
287+ surveyTriggerForUser ( 'TCA First Module Completed' , profile ?. userId )
288+ } , 1000 )
287289 }
288290
289291 /**
You can’t perform that action at this time.
0 commit comments