fix(front): small fixes (#1134)

This commit is contained in:
Antoine 2025-11-03 19:37:18 +01:00 committed by GitHub
parent d98ac3b452
commit 14c8f25499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ export const Subtitle = z.object({
language: z.string().nullable(), language: z.string().nullable(),
codec: z.string(), codec: z.string(),
mimeCodec: z.string().nullable(), mimeCodec: z.string().nullable(),
extension: z.string(), extension: z.string().nullable(),
isDefault: z.boolean(), isDefault: z.boolean(),
isForced: z.boolean(), isForced: z.boolean(),
isHearingImpaired: z.boolean(), isHearingImpaired: z.boolean(),

View File

@ -36,7 +36,7 @@ export const ImageBackground = ({
headers: headers:
authToken && Platform.OS !== "web" authToken && Platform.OS !== "web"
? { ? {
Authorization: authToken, Authorization: `Bearer ${authToken}`,
} }
: undefined, : undefined,
}} }}

View File

@ -45,7 +45,7 @@ export const Image = ({
headers: headers:
authToken && Platform.OS !== "web" authToken && Platform.OS !== "web"
? { ? {
Authorization: authToken, Authorization: `Bearer ${authToken}`,
} }
: undefined, : undefined,
}} }}

View File

@ -161,7 +161,7 @@ const toQueryKey = (query: {
.filter(([_, v]) => v !== undefined) .filter(([_, v]) => v !== undefined)
.map(([k, v]) => `${k}=${Array.isArray(v) ? v.join(",") : v}`) .map(([k, v]) => `${k}=${Array.isArray(v) ? v.join(",") : v}`)
.join("&")}` .join("&")}`
: null, : undefined,
].filter((x) => x !== undefined); ].filter((x) => x !== undefined);
}; };