From ecf9983ea618ab81dba80db78db9c77f114c1d5c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 6 Dec 2023 14:35:55 +0200 Subject: [PATCH] Fix minimum availability label in movie table row --- frontend/src/Movie/Index/Table/MovieIndexRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Movie/Index/Table/MovieIndexRow.tsx b/frontend/src/Movie/Index/Table/MovieIndexRow.tsx index 6cecac3e9..78806c08a 100644 --- a/frontend/src/Movie/Index/Table/MovieIndexRow.tsx +++ b/frontend/src/Movie/Index/Table/MovieIndexRow.tsx @@ -26,7 +26,7 @@ import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector'; import { SelectStateInputProps } from 'typings/props'; import formatRuntime from 'Utilities/Date/formatRuntime'; import formatBytes from 'Utilities/Number/formatBytes'; -import titleCase from 'Utilities/String/titleCase'; +import firstCharToUpper from 'Utilities/String/firstCharToUpper'; import translate from 'Utilities/String/translate'; import MovieIndexProgressBar from '../ProgressBar/MovieIndexProgressBar'; import MovieStatusCell from './MovieStatusCell'; @@ -286,7 +286,7 @@ function MovieIndexRow(props: MovieIndexRowProps) { if (name === 'minimumAvailability') { return ( - {titleCase(minimumAvailability)} + {translate(firstCharToUpper(minimumAvailability))} ); }