1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Directly return boolean value instead of returning it from ternary operator

This commit is contained in:
Freako 2023-10-02 18:28:45 +05:30 committed by GitHub
parent f563fce5a5
commit fb77e19da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,8 @@ const GenresSectionContainer: FC<GenresSectionContainerProps> = ({
centerText: true,
cardLayout: false,
shape: itemType === BaseItemKind.MusicAlbum ? 'overflowSquare' : 'overflowPortrait',
showParentTitle: itemType === BaseItemKind.MusicAlbum ? true : false,
showYear: itemType === BaseItemKind.MusicAlbum ? false : true
showParentTitle: (itemType === BaseItemKind.MusicAlbum),
showYear: !(itemType === BaseItemKind.MusicAlbum)
}}
/>;
};