diff --git a/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx b/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx index 1efd4673939..318d7b73598 100644 --- a/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx +++ b/fronts-client/src/components/FrontsEdit/CollectionComponents/Card.tsx @@ -112,7 +112,7 @@ class Card extends React.Component { }; public toggleShowArticleSublinks = (e?: React.MouseEvent) => { - const togPos = this.state.showCardSublinks ? false : true; + const togPos = !this.state.showCardSublinks; this.setState({ showCardSublinks: togPos }); if (e) { e.stopPropagation(); diff --git a/fronts-client/src/components/card/chef/ChefCard.tsx b/fronts-client/src/components/card/chef/ChefCard.tsx index 27ac1301a98..e4bbacbc21c 100644 --- a/fronts-client/src/components/card/chef/ChefCard.tsx +++ b/fronts-client/src/components/card/chef/ChefCard.tsx @@ -59,7 +59,7 @@ export const ChefCard = ({ {showMeta && ( Chef - {upperFirst(chef?.sectionName)} + {upperFirst(chef?.type)} )} @@ -72,7 +72,7 @@ export const ChefCard = ({ /> - {`${chef?.firstName} ${chef?.lastName}` ?? 'No Chef found'} + {chef?.webTitle ?? 'No Chef found'}