Skip to content

Commit f962081

Browse files
committed
fixes Maintenance mode toggler bug
1 parent 2dfce0f commit f962081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/user/dashboard/Community/components/Toggle/ToggleSwitch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function ToggleSwitch(props) {
2121

2222
let handleClose = () => {
2323
console.log('close clicked!')
24+
setCheck(!checked)
2425
setModalShow(false)
2526
}
2627

@@ -99,4 +100,4 @@ const mapStateToProps = (state) => ({
99100
error: state.error
100101
})
101102

102-
export default connect(mapStateToProps)(withRouter(ToggleSwitch));
103+
export default connect(mapStateToProps)(withRouter(ToggleSwitch));

0 commit comments

Comments
 (0)