mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 13:58:05 +03:00
More big updates (just incase hdd dies or something)
This commit is contained in:
@@ -45,6 +45,12 @@ export async function APIFetchV1<T = unknown>(
|
||||
|
||||
const rj = await res.json();
|
||||
|
||||
if (!rj.success) {
|
||||
console.error(rj);
|
||||
} else {
|
||||
console.log(rj.description);
|
||||
}
|
||||
|
||||
if (!rj.success && displayFailure) {
|
||||
toast.error(rj.description, { duration: 10_000 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user