Skip to content

Commit

Permalink
Merge pull request #53 from useplunk/dev-driaug-contact-update
Browse files Browse the repository at this point in the history
Fix: incorrect schema in dashboard
  • Loading branch information
driaug authored Aug 14, 2024
2 parents 970b808 + d69a57d commit 84a14b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dashboard/src/pages/contacts/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Index() {
});

const { handleSubmit, watch, setValue, reset } = useForm<ContactValues>({
resolver: zodResolver(ContactSchemas.update),
resolver: zodResolver(ContactSchemas.manage),
});

const {
Expand Down Expand Up @@ -132,7 +132,7 @@ export default function Index() {
dataObject = Object.fromEntries(Object.entries(dataObject).filter(([, value]) => value !== ""));

toast.promise(
network.mock<Contact, typeof ContactSchemas.update>(project.secret, "PUT", "/v1/contacts", {
network.mock<Contact, typeof ContactSchemas.manage>(project.secret, "PUT", "/v1/contacts", {
id: contact.id,
...data,
data: dataObject,
Expand Down

0 comments on commit 84a14b5

Please sign in to comment.