diff --git a/landingPages/result/resultLanding.component.ts b/landingPages/result/resultLanding.component.ts index cec8d099..455db14e 100644 --- a/landingPages/result/resultLanding.component.ts +++ b/landingPages/result/resultLanding.component.ts @@ -673,9 +673,9 @@ export class ResultLandingComponent { } } private hasKeyword(value:string, words:string[]){ - return words.filter( word => { return value.toLowerCase().indexOf(word)!=-1}).length > 0; + return value?words.filter( word => { return value.toLowerCase().indexOf(word)!=-1}).length > 0:0; } private isKeyword(value:string, words:string[]){ - return words.filter( word => { return value.toLowerCase() == word}).length > 0; + return value?words.filter( word => { return value.toLowerCase() == word}).length > 0:0; } }