diff --git a/fe/src/components/search/SearchResult.tsx b/fe/src/components/search/SearchResult.tsx index 2991fec..657774b 100644 --- a/fe/src/components/search/SearchResult.tsx +++ b/fe/src/components/search/SearchResult.tsx @@ -8,14 +8,13 @@ const SearchResult = ({ items }: SearchResultProps) => (
{items.length > 0 && items.map((item) => { const { Title, Poster, imdbID, Year, Type } = item; - const yearSanitized = Year.length > 4 ? `${Year.substring(0, 4)}..` : Year; return ( ); diff --git a/fe/src/components/search/SearchResultItem.tsx b/fe/src/components/search/SearchResultItem.tsx index 2f88703..f79f1df 100644 --- a/fe/src/components/search/SearchResultItem.tsx +++ b/fe/src/components/search/SearchResultItem.tsx @@ -27,7 +27,7 @@ const SearchResultItem = ({
- {year} + {year.substring(0, 4)}   -