chore: Add ESLint no-floating-promise

This commit is contained in:
Timmy Huang
2024-09-12 13:36:26 -07:00
parent fd8b47b78e
commit 151c28d119
24 changed files with 822 additions and 716 deletions
@@ -42,12 +42,12 @@ export default class MiniStackedBar extends React.PureComponent {
}
};
componentDidUpdate = (prevProps) => {
componentDidUpdate(prevProps) {
const { occupancy } = this.props;
if (occupancy !== prevProps.occupancy) this.drawStacks();
};
componentDidMount = () => {
componentDidMount() {
this.drawStacks();
};