bug fixed

This commit is contained in:
daniel31x13 2023-11-06 10:01:39 -05:00
parent c8edc3844b
commit 7bdef522c1
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ export default function LinkCard({ link, count, className }: Props) {
if (response.ok) {
toast.success(`Link is being archived...`);
getLink(link.id as number);
} else toast.error(data);
} else toast.error(data.response);
};
const deleteLink = async () => {

View File

@ -47,7 +47,7 @@ export default async function links(req: NextApiRequest, res: NextApiResponse) {
});
}
// Later?
// TODO - Later?
// else if (req.method === "DELETE") {}
}