Closed alon-z closed 6 years ago
Using || made it so it will always default to true. That way addResetSwitch and shouldTurnOff were not set to false. Fixed it by using typeof.
addResetSwitch
shouldTurnOff
Thanks @alonikomax for finding the bug & fixing it. Appreciate your contribution. Allow me some time to release a new version on npm
Using || made it so it will always default to true. That way
addResetSwitch
andshouldTurnOff
were not set to false. Fixed it by using typeof.