From 97ed1d2a7d25a6511535e60edfb8edc26b066cc2 Mon Sep 17 00:00:00 2001 From: Gan Eng Chin Date: Wed, 8 Mar 2023 02:57:02 +0800 Subject: [PATCH] Fix array length rendering literal 0 in CreateNewCampaignModal. --- .../Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx index d0b637e77a8..eaf17c9ddc9 100644 --- a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx +++ b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/CreateNewCampaignModal/CreateNewCampaignModal.tsx @@ -119,7 +119,7 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => { } ) } - { recommendedChannels?.length && ( + { !! recommendedChannels?.length && (