We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05084c7 commit 40bac57Copy full SHA for 40bac57
src/bootstrap-switch-button-react.js
@@ -51,9 +51,9 @@ export default class BootstrapSwitchButton extends React.Component {
51
}
52
53
componentDidUpdate(_, prevState) {
54
- const { checked } = this.props
55
- if(typeof checked === "boolean" && checked !== prevState.checked) {
56
- this.setState({ checked })
+ const { checked } = this.props;
+ if (typeof checked === "boolean" && checked !== prevState.checked) {
+ this.setState({ checked });
57
58
59
0 commit comments