Fix 0 rendered on short-circuit evaluation.
This commit is contained in:
parent
f1a3f388bd
commit
ed6c19b827
|
@ -44,10 +44,10 @@ export const MarketingOverviewMultichannel: React.FC = () => {
|
|||
|
||||
return (
|
||||
<div className="woocommerce-marketing-overview-multichannel">
|
||||
{ dataRegistered?.length && <Campaigns /> }
|
||||
{ !! dataRegistered?.length && <Campaigns /> }
|
||||
{ dataRegistered &&
|
||||
dataRecommended &&
|
||||
( dataRegistered.length || dataRecommended.length ) && (
|
||||
!! ( dataRegistered.length || dataRecommended.length ) && (
|
||||
<Channels
|
||||
registeredChannels={ dataRegistered }
|
||||
recommendedChannels={ dataRecommended }
|
||||
|
|
Loading…
Reference in New Issue