Fix getting `skin_variations` data

release
Etienne Lemay 2017-05-27 10:54:34 -04:00
parent 3373997cd6
commit b2d9311c87
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,7 @@ function getData(emoji, skin, set) {
emojiData = JSON.parse(JSON.stringify(emojiData))
var skinKey = SKINS[skin - 1],
variationKey = `${emojiData.unified}-${skinKey}`,
variationData = emojiData.skin_variations[variationKey]
variationData = emojiData.skin_variations[skinKey]
if (!variationData.variations && emojiData.variations) {
delete emojiData.variations