Show Campaigns card only when there is at least one registered channel.
This commit is contained in:
parent
ee6fa9508e
commit
8e39098256
|
@ -37,8 +37,7 @@ export const MarketingOverviewMultichannel: React.FC = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="woocommerce-marketing-overview-multichannel">
|
<div className="woocommerce-marketing-overview-multichannel">
|
||||||
{ /* TODO: show Campaigns card only when there is at least one registered channel. */ }
|
{ dataRegistered.length >= 1 && <Campaigns /> }
|
||||||
<Campaigns />
|
|
||||||
{ ( dataRegistered.length >= 1 || dataRecommended.length >= 1 ) && (
|
{ ( dataRegistered.length >= 1 || dataRecommended.length >= 1 ) && (
|
||||||
<Channels
|
<Channels
|
||||||
registeredChannels={ dataRegistered }
|
registeredChannels={ dataRegistered }
|
||||||
|
|
Loading…
Reference in New Issue