Directly return boolean value instead of returning it from ternary operator
This commit is contained in:
@@ -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)
|
||||
}}
|
||||
/>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user