sforkowany z mirror/soapbox
Lint: Fix weird react-hooks error
rodzic
144469cda9
commit
c5e1f3cfd4
|
@ -72,7 +72,7 @@ const mapDispatchToProps = (dispatch, { onPickEmoji }) => ({
|
||||||
},
|
},
|
||||||
|
|
||||||
onPickEmoji: emoji => {
|
onPickEmoji: emoji => {
|
||||||
dispatch(useEmoji(emoji));
|
dispatch(useEmoji(emoji)); // eslint-disable-line react-hooks/rules-of-hooks
|
||||||
|
|
||||||
if (onPickEmoji) {
|
if (onPickEmoji) {
|
||||||
onPickEmoji(emoji);
|
onPickEmoji(emoji);
|
||||||
|
|
Ładowanie…
Reference in New Issue