mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-06 06:36:25 +00:00
fix(front): small fixes (#1134)
This commit is contained in:
@@ -47,7 +47,7 @@ export const Subtitle = z.object({
|
||||
language: z.string().nullable(),
|
||||
codec: z.string(),
|
||||
mimeCodec: z.string().nullable(),
|
||||
extension: z.string(),
|
||||
extension: z.string().nullable(),
|
||||
isDefault: z.boolean(),
|
||||
isForced: z.boolean(),
|
||||
isHearingImpaired: z.boolean(),
|
||||
|
||||
@@ -36,7 +36,7 @@ export const ImageBackground = ({
|
||||
headers:
|
||||
authToken && Platform.OS !== "web"
|
||||
? {
|
||||
Authorization: authToken,
|
||||
Authorization: `Bearer ${authToken}`,
|
||||
}
|
||||
: undefined,
|
||||
}}
|
||||
|
||||
@@ -45,7 +45,7 @@ export const Image = ({
|
||||
headers:
|
||||
authToken && Platform.OS !== "web"
|
||||
? {
|
||||
Authorization: authToken,
|
||||
Authorization: `Bearer ${authToken}`,
|
||||
}
|
||||
: undefined,
|
||||
}}
|
||||
|
||||
@@ -161,7 +161,7 @@ const toQueryKey = (query: {
|
||||
.filter(([_, v]) => v !== undefined)
|
||||
.map(([k, v]) => `${k}=${Array.isArray(v) ? v.join(",") : v}`)
|
||||
.join("&")}`
|
||||
: null,
|
||||
: undefined,
|
||||
].filter((x) => x !== undefined);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user