feat: add release to collection toast

This commit is contained in:
Kentai Radiquum 2025-03-21 01:46:48 +05:00
parent 3aa71acad5
commit 75ab5e1901
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 58 additions and 31 deletions

View file

@ -34,15 +34,15 @@ export async function tryCatchAPI<T, E = Error>(
): Promise<Result<any, any>> {
try {
const res: Awaited<Response> = await promise;
if (!res.ok) {
return {
data: null,
error: {
message: res.statusText,
code: res.status,
},
};
}
// if (!res.ok) {
// return {
// data: null,
// error: {
// message: res.statusText,
// code: res.status,
// },
// };
// }
if (
res.headers.get("content-length") &&