Refactor code and fix bug where state.checked is opposite of correct state.
Refactor code and fix bug where state.checked is opposite of correct state.

Magneticmagnum/react-atlas,DigitalRiver/react-atlas