sforkowany z mirror/soapbox
Lint: Fix weird react-hooks error
rodzic
144469cda9
commit
c5e1f3cfd4
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue