diff --git a/src/components/avatar.jsx b/src/components/avatar.jsx index 7e632b9..451e9c6 100644 --- a/src/components/avatar.jsx +++ b/src/components/avatar.jsx @@ -45,7 +45,7 @@ const Author = styled("span")(({ theme }) => ({ })); const Latency = styled("span")(({ theme, latency }) => ({ - color: latency == "0" ? "red" : "inherit", + color: latency === "0" ? "red" : "inherit", marginLeft: "auto", textShadow: theme === themes.dark ? "0 1px 2px rgba(0,0,0,0.90)" : null })); diff --git a/src/components/board.jsx b/src/components/board.jsx index cc9179c..9b8bee1 100644 --- a/src/components/board.jsx +++ b/src/components/board.jsx @@ -10,6 +10,7 @@ class Board extends React.Component { ( - - ))} + {food.map((f, foodIndex) => { + if (this.props.foodImage) { + return ( + + ); + } else { + return ( + + ); + } + })} {hazards.map((o, hazardIndex) => (