quick BIG alert

This commit is contained in:
Nate Kelley 2025-08-07 14:18:12 -06:00
parent 9a7f388a1c
commit 115a6da7e9
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 13 additions and 1 deletions

View File

@ -54,5 +54,17 @@ export const updateReport = async ({
reportId,
...data
}: UpdateReportRequest & { reportId: string }) => {
return mainApiV2.put<UpdateReportResponse>(`/reports/${reportId}`, data).then((res) => res.data);
return mainApiV2
.put<UpdateReportResponse>(`/reports/${reportId}`, data)
.then((res) => res.data)
.catch((err) => {
console.error(err);
const IS_STAGING = window.location.hostname.includes('staging');
if (IS_STAGING) {
alert(
'Look at the request payload and TELL NATE IMMEDIATELY. This error will only show up staging.'
);
}
throw err;
});
};