Fix 0 rendered on short-circuit evaluation.

This commit is contained in:
Rodrigue Tusse 2023-03-07 15:06:25 +02:00
parent f1a3f388bd
commit ed6c19b827
1 changed files with 2 additions and 2 deletions

View File

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