react-zendesk
react-zendesk copied to clipboard
canUseDom is a function but is being used as a boolean
canUseDom is a function defined here https://github.com/B3nnyL/react-zendesk/blob/master/src/index.js#L4
However, you are using it as a boolean in if statements here: https://github.com/B3nnyL/react-zendesk/blob/master/src/index.js#L47 and here https://github.com/B3nnyL/react-zendesk/blob/master/src/index.js#L55
This has the effect of always being truthy. If the function is necessary, then call it. If it's not necessary, it should be removed.
https://github.com/B3nnyL/react-zendesk/pull/43