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'
47
47
import { FccSidebar } from './fcc-sidebar'
48
48
import { TitleNav } from './title-nav'
49
49
import styles from './FreeCodeCamp.module.scss'
50
- import { LearnConfig } from '../learn-config'
51
50
52
51
const FreeCodeCamp : FC < { } > = ( ) => {
53
52
@@ -281,9 +280,12 @@ const FreeCodeCamp: FC<{}> = () => {
281
280
282
281
// This is the last lesson to be completed in the first module completed,
283
282
// so it's time to trigger the survey
283
+
284
284
// NOTE: We have to add a delay, otherwise the survey closes when the user
285
285
// is automatically redirected to the next lesson.
286
- setShowSurvey ( certificationParam )
286
+ setTimeout ( ( ) => {
287
+ surveyTriggerForUser ( 'TCA First Module Completed' , profile ?. userId )
288
+ } , 1000 )
287
289
}
288
290
289
291
/**
You can’t perform that action at this time.
0 commit comments