Show Campaigns card only when there is at least one registered channel.

This commit is contained in:
Gan Eng Chin 2022-12-24 01:43:09 +08:00
parent ee6fa9508e
commit 8e39098256
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 1 additions and 2 deletions

View File

@ -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 }