@@ -45,15 +45,15 @@ import { TitleNav } from './title-nav'
4545const FreeCodeCamp : FC < { } > = ( ) => {
4646
4747 const {
48- profile,
4948 initialized : profileReady ,
49+ isLoggedIn,
50+ profile,
5051 } : ProfileContextData = useContext ( profileContext )
51- const isLoggedIn : boolean = ! ! profile
5252
5353 const navigate : NavigateFunction = useNavigate ( )
5454 const routeParams : Params < string > = useParams ( )
55-
5655 const providerParam : string = routeParams . provider ?? ''
56+
5757 const [ certificationParam , setCourseParam ] : [ string , Dispatch < SetStateAction < string > > ] = useState ( routeParams . certification ?? '' )
5858 const [ moduleParam , setModuleParam ] : [ string , Dispatch < SetStateAction < string > > ] = useState ( routeParams . module ?? '' )
5959 const [ lessonParam , setLessonParam ] : [ string , Dispatch < SetStateAction < string > > ] = useState ( routeParams . lesson ?? '' )
@@ -178,7 +178,8 @@ const FreeCodeCamp: FC<{}> = () => {
178178 lesson . course . certificationId ,
179179 lesson . course . id ,
180180 currentLesson
181- ) . then ( setCertificateProgress )
181+ )
182+ . then ( setCertificateProgress )
182183 } else {
183184 // TODO: remove this delay!!
184185 // TEMP_FIX: delay this api call to allow for previous "completeLesson" call to write in the api
@@ -297,7 +298,7 @@ const FreeCodeCamp: FC<{}> = () => {
297298 if ( lessonPath !== lessonParam ) {
298299 setLessonParam ( lessonPath )
299300 }
300- // eslint-disable-next-line react-hooks/exhaustive-deps
301+ // eslint-disable-next-line react-hooks/exhaustive-deps
301302 } , [
302303 // DO NOT UPDATE THIS DEPS ARRAY!!
303304 // we do not care about changes to the other deps
0 commit comments