Do not render emoji when not supported in set

nolan/hinaloe-test
Etienne Lemay 2017-05-27 13:52:12 -04:00
parent 7d014966e6
commit 33bcbda3d7
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ const Emoji = (props) => {
backgroundSize: '100%', backgroundSize: '100%',
} }
} else { } else {
let setHasEmoji = _getData(props)[`has_img_${props.set}`]
if (!setHasEmoji) {
return null
}
style = { style = {
width: props.size, width: props.size,
height: props.size, height: props.size,