Test missing accept-language endpoint

This commit is contained in:
Zoe Roux
2024-12-19 16:20:35 +01:00
parent 3a7a12bfd3
commit a4853cb186
2 changed files with 18 additions and 5 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ export const Language = (props?: StringProps) =>
...props,
});
export const processLanguages = (languages: string) => {
export const processLanguages = (languages?: string) => {
if (!languages) return ["*"];
return languages
.split(",")
.map((x) => {