Skip to content

Commit d9d4ad1

Browse files
Merge pull request #445 from topcoder-platform/TCA-790_assessments
TCA-790 assessments add delay
2 parents a5788de + 289d146 commit d9d4ad1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,9 @@ const FreeCodeCamp: FC<{}> = () => {
277277

278278
// NOTE: We have to add a delay, otherwise the survey closes when the user
279279
// is automatically redirected to the next lesson.
280-
surveyTriggerForUser('TCA First Module Completed', profile?.userId)
281-
280+
setTimeout(() => {
281+
surveyTriggerForUser('TCA First Module Completed', profile?.userId)
282+
}, 1000)
282283
}
283284

284285
/**

0 commit comments

Comments
 (0)