[offers][fix] change id to profileid

This commit is contained in:
Stuart Long Chay Boon
2022-10-12 23:06:37 +08:00
parent e8ef133a88
commit 08fb401c57
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ export default function OfferProfile() {
function handleDelete() {
if (isEditable) {
deleteMutation.mutate({
id: offerProfileId as string,
profileId: offerProfileId as string,
token: 'CHANGE THIS PART TO URL PARAM @ ZIQING', // TODO: token: token as string,
});
trpcContext.invalidateQueries(['offers.profile.listOne']);

View File

@ -17,7 +17,7 @@ function Test() {
const deleteMutation = trpc.useMutation(['offers.profile.delete']);
const handleDelete = (id: string) => {
deleteMutation.mutate({ id, token: ' dadaadad' });
deleteMutation.mutate({ profileId: id, token: ' dadaadad' });
};
return (