diff --git a/src/utils/index.js b/src/utils/index.js index 37055af..2e1dcfa 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -150,9 +150,8 @@ function getEmojiDataFromNative(nativeString, set, data) { let skinCode let baseNativeString = nativeString - skinTones.forEach((skinTone) => { + skinTones.forEach((skinTone, skinToneIndex) => { if (nativeString.indexOf(skinTone) > 0) { - const skinToneIndex = skinTones.indexOf(skinTone) skin = skinToneIndex + 2 skinCode = skinCodes[skinToneIndex] }