Skip to content

Commit

Permalink
adjustment validation language
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jun 14, 2024
1 parent 6ac9eff commit 71ac401
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export class AppLanguageComponent implements OnInit {
}

isLanguageValid(code: string): boolean {
const validLanguages = ['en', 'pt', 'es', 'ru', 'zh', 'fr'];
return validLanguages.includes(code);
return this.codeLanguage == code;
}

getUrl(language: string): string {
Expand Down

0 comments on commit 71ac401

Please sign in to comment.