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,