Display info message when there are no campaign types.

This commit is contained in:
Gan Eng Chin 2023-03-10 02:13:05 +08:00
parent 6446053784
commit e4da8cba09
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 6 additions and 4 deletions

View File

@ -60,10 +60,12 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
>
<div className="woocommerce-marketing-new-campaigns">
<div className="woocommerce-marketing-new-campaigns__question-label">
{ __(
'Where would you like to promote your products?',
'woocommerce'
) }
{ !! campaignTypes?.length
? __(
'Where would you like to promote your products?',
'woocommerce'
)
: __( 'No campaign types found.', 'woocommerce' ) }
</div>
<div>
{ campaignTypes?.map( ( el ) => (