Skip to content

Commit 812782a

Browse files
Merge branch 'TCA-832_release' into dev
2 parents a0ea303 + a3251b9 commit 812782a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import { FccFrame } from './fcc-frame'
4747
import { FccSidebar } from './fcc-sidebar'
4848
import { TitleNav } from './title-nav'
4949
import styles from './FreeCodeCamp.module.scss'
50-
import { LearnConfig } from '../learn-config'
5150

5251
const 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
/**

0 commit comments

Comments
 (0)