diff --git a/package.json b/package.json index db40a1f..e7c5382 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "dependencies": { "@fontsource/comic-neue": "^4.5.8", "@fontsource/opendyslexic": "^4.5.4", - "bootstrap": "latest", + "bootstrap": "^5.1.3", "normalize.css": "^8.0.1", "postcss-loader": "^7.0.0", "preact": "^10.7.2", diff --git a/src/foodItems.tsx b/src/foodItems.tsx index ff4095b..32d4ad7 100644 --- a/src/foodItems.tsx +++ b/src/foodItems.tsx @@ -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 -
+
{this.props.title}

{this.props.extra}