fix: update isEmpty logic

This commit is contained in:
AhtishamShahid
2023-01-17 20:40:17 +05:00
parent 6f96b0d6ef
commit a1a9e3b21e

View File

@@ -1,5 +1,6 @@
import { useEffect } from 'react';
import isEmpty from 'lodash/isEmpty';
import { useDispatch } from 'react-redux';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
@@ -17,7 +18,7 @@ function DiscussionsProductTour({ intl }) {
return (
<>
{config.length && (
{!isEmpty(config) && (
<ProductTour
tours={config}
/>