mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:33:26 +00:00
Fix year NaN, no longer open unreleased
This commit is contained in:
@@ -64,8 +64,6 @@ const DownloadsScreen: React.FC = () => {
|
||||
},
|
||||
};
|
||||
|
||||
console.log(isDevelopmentProvisioningProfile());
|
||||
|
||||
return (
|
||||
<ScreenLayout>
|
||||
<YStack gap={2} style={{ padding: 10 }}>
|
||||
|
@@ -150,6 +150,9 @@ async function fetchSearchResults(query: string): Promise<ItemData[]> {
|
||||
id: result.id.toString(),
|
||||
title: result.media_type === "tv" ? result.name : result.title,
|
||||
posterUrl: getMediaPoster(result.poster_path),
|
||||
release_date: new Date(
|
||||
result.media_type === "tv" ? result.first_air_date : result.release_date,
|
||||
),
|
||||
year: new Date(
|
||||
result.media_type === "tv" ? result.first_air_date : result.release_date,
|
||||
).getFullYear(),
|
||||
|
Reference in New Issue
Block a user