Lint: Fix weird react-hooks error

This commit is contained in:
Alex Gleason 2020-06-09 23:11:35 -05:00
parent 144469cda9
commit c5e1f3cfd4
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -72,7 +72,7 @@ const mapDispatchToProps = (dispatch, { onPickEmoji }) => ({
},
onPickEmoji: emoji => {
dispatch(useEmoji(emoji));
dispatch(useEmoji(emoji)); // eslint-disable-line react-hooks/rules-of-hooks
if (onPickEmoji) {
onPickEmoji(emoji);