Skip to content

Commit

Permalink
fix(creative): dont pass multiple payloads (#1372)
Browse files Browse the repository at this point in the history
We can no longer pass multiple payloads to the backend, this
accommodates that
  • Loading branch information
IanKrieger authored Oct 11, 2024
1 parent 248f46c commit 5d0df34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/Url/UrlResolver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 0 additions & 13 deletions src/user/views/adsManager/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d0df34

Please sign in to comment.