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