oops
This commit is contained in:
parent
bac911d593
commit
01c8bf372c
|
@ -16,7 +16,7 @@ export const FoodItemsContainer = (props: {
|
|||
}
|
||||
|
||||
function shouldShowItem(contents, exclude: FoodExcludeTypes): boolean {
|
||||
|
||||
if (!exclude) return false;
|
||||
for (let key of Object.keys(exclude)) {
|
||||
if (Object.keys(contents).includes(key)) {
|
||||
if (!exclude[key]) return false;
|
||||
|
@ -59,7 +59,7 @@ export class AdvancedFoodItem extends Component<FoodItemProps & { extra: string
|
|||
render() {
|
||||
return (
|
||||
<HideIfFoodExcluded {...this.props}>
|
||||
<div class="list-group-item mb-1" role="listitem">
|
||||
<div class="list-group-item">
|
||||
<h5 class="mb-1">{this.props.title}</h5>
|
||||
<p class="mb-1">{this.props.extra}</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue