Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kaje94 committed Nov 10, 2023
1 parent bc8bd60 commit 1d57304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Modals/DeleteListingItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const DeleteListingItemModal = (props: Props) => {
const router = useRouter();
const params = useParams();

const { mutate, isLoading } = useMutation((id: number) => deleteListingAction(id, listingUserId!), {
const { mutate, isLoading } = useMutation((id: string) => deleteListingAction(id, listingUserId!), {
onSuccess: (_, id) => {
if (
[
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/DeleteSubscriptionItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DeleteSubscriptionItemModal = (props: Props) => {

const toastId = useRef<string>();

const { mutate, isLoading } = useMutation((id: number) => deleteListingSubscriptionAction(id, userId!), {
const { mutate, isLoading } = useMutation((id: string) => deleteListingSubscriptionAction(id, userId!), {
onMutate: () => {
setVisible(false);
toastId.current = toast.loading(`Deleting subscription ${displayName}...`);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/RenewListingItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const RenewListingItemModal = (props: Props) => {
const { id: listingId, title: listingTitle, userId } = listingItem as ListingItem;
const toastId = useRef<string>();

const { mutate, isLoading } = useMutation((id: number) => renewListingAction(id, userId!), {
const { mutate, isLoading } = useMutation((id: string) => renewListingAction(id, userId!), {
onMutate: () => {
setVisible(false);
toastId.current = toast.loading(`Renewing advert ${listingTitle}...`);
Expand Down

0 comments on commit 1d57304

Please sign in to comment.