diff --git a/client/src/client-only-routes/show-project-links.tsx b/client/src/client-only-routes/show-project-links.tsx index 074f1c5e5f..23ba7aec09 100644 --- a/client/src/client-only-routes/show-project-links.tsx +++ b/client/src/client-only-routes/show-project-links.tsx @@ -21,7 +21,7 @@ interface IShowProjectLinksProps { type SolutionStateType = { projectTitle: string; challengeFiles: ChallengeFileType[] | null; - solution: null | string; + solution: CompletedChallenge['solution']; isOpen: boolean; }; @@ -74,7 +74,7 @@ const ShowProjectLinks = (props: IShowProjectLinksProps): JSX.Element => { if (githubLink) { return ( <> - + {t('certification.project.solution')} ,{' '} @@ -84,11 +84,11 @@ const ShowProjectLinks = (props: IShowProjectLinksProps): JSX.Element => { ); } - if (maybeUrlRE.test(solution)) { + if (maybeUrlRE.test(solution ?? '')) { return (