Skip to content

Commit 83aaeb4

Browse files
authored
When there's no promotional banner content, don't include an empty card (#3343)
1 parent 4b257bc commit 83aaeb4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/settings/payment-settings/promotional-banner-section.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,11 @@ const PromotionalBannerSection = ( {
219219
}
220220

221221
return (
222-
<BannerCard data-testid="promotional-banner-card">
223-
{ BannerContent }
224-
</BannerCard>
222+
BannerContent && (
223+
<BannerCard data-testid="promotional-banner-card">
224+
{ BannerContent }
225+
</BannerCard>
226+
)
225227
);
226228
};
227229

0 commit comments

Comments
 (0)