Update ProgressCleanupPart.tsx

This commit is contained in:
Pas 2025-10-30 13:28:07 -06:00
parent afccb7fa4d
commit d28f25118a

View file

@ -2,6 +2,7 @@ import { ofetch } from "ofetch";
import { useState } from "react";
import { useAsyncFn } from "react-use";
import { getAuthHeaders } from "@/backend/accounts/auth";
import { Button } from "@/components/buttons/Button";
import { Icon, Icons } from "@/components/Icon";
import { Box } from "@/components/layout/Box";
@ -20,9 +21,7 @@ async function cleanupProgressItems(
) {
return ofetch<CleanupResponse>(`/users/${account.userId}/progress/cleanup`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${account.token}`,
},
headers: getAuthHeaders(account.token),
baseURL: backendUrl,
});
}