From cb0cea07a1ced3f3b128587a05fc5cbfc4b99941 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton Date: Sat, 26 Jun 2021 14:14:45 +0100 Subject: [PATCH] fix show-project-links type linting --- client/src/client-only-routes/show-project-links.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 (