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%',
}
} else {
let setHasEmoji = _getData(props)[`has_img_${props.set}`]
if (!setHasEmoji) {
return null
}
style = {
width: props.size,
height: props.size,