Do not render emoji when not supported in set
parent
7d014966e6
commit
33bcbda3d7
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue