From 5d0df3483a80fc1e506ab1fb5bffe4985e4b1160 Mon Sep 17 00:00:00 2001 From: Ian Krieger <48930920+IanKrieger@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:40:18 -0400 Subject: [PATCH] fix(creative): dont pass multiple payloads (#1372) We can no longer pass multiple payloads to the backend, this accommodates that --- src/components/Url/UrlResolver.tsx | 2 +- src/user/views/adsManager/types/index.ts | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/components/Url/UrlResolver.tsx b/src/components/Url/UrlResolver.tsx index cbe0bd1bb..ec68d24f7 100644 --- a/src/components/Url/UrlResolver.tsx +++ b/src/components/Url/UrlResolver.tsx @@ -49,7 +49,7 @@ export const UrlResolver = ({ const isDirty = !_.isEqual(nameMeta.value, nameMeta.initialValue); const { _: lingui } = useLingui(); - const urlValidation = useUrlValidation(nameField.value); + const urlValidation = useUrlValidation(nameField?.value ?? ""); useEffect(() => { const { isValid } = urlValidation; diff --git a/src/user/views/adsManager/types/index.ts b/src/user/views/adsManager/types/index.ts index af5cf26dd..5d74d2c50 100644 --- a/src/user/views/adsManager/types/index.ts +++ b/src/user/views/adsManager/types/index.ts @@ -89,19 +89,6 @@ export const initialCreative: Creative = { advertiserId: "", // eslint-disable-next-line lingui/no-unlocalized-strings targetUrlValid: "Target URL validation incomplete", - payloadNotification: { - title: "", - targetUrl: "", - body: "", - }, - payloadInlineContent: { - ctaText: "", - description: "", - dimensions: "900x750", - imageUrl: "", - targetUrl: "", - title: "", - }, type: { code: "" }, state: "draft", included: false,