From 1bf7113fb7c80a89079e8ae295fb3edc244adfc9 Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Mon, 6 Nov 2023 08:42:14 -0500 Subject: [PATCH] fix: hide in review --- .../components/review/components/AdSetReview.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx b/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx index 1917ae07..79ac0452 100644 --- a/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx +++ b/src/user/views/adsManager/views/advanced/components/review/components/AdSetReview.tsx @@ -13,7 +13,7 @@ interface Props { errors?: string | FormikErrors; } -export function AdSetReview({ adSet, idx, errors }: Props) { +export function AdSetReview({ adSet, idx, errors, format }: Props) { const included = adSet.creatives.filter((c) => c.included); const hasErrors = !!errors; if (typeof errors === "string") { @@ -37,11 +37,13 @@ export function AdSetReview({ adSet, idx, errors }: Props) { value={adSet.name || `Ad Set ${idx + 1}`} error={hasErrors ? adSetError?.name : ""} /> - + {format !== CampaignFormat.NewsDisplayAd && ( + + )}