diff --git a/src/components/category.js b/src/components/category.js index e16f193..ff5b4f6 100644 --- a/src/components/category.js +++ b/src/components/category.js @@ -176,9 +176,7 @@ export default class Category extends React.Component { return (
+ const component = (notFound && notFound()) || ( +
{NimbleEmoji({ data: data, ...emojiProps, @@ -21,7 +21,7 @@ export default class NotFound extends React.PureComponent {
) - return
{imageComponent}
+ return component } }