fixxxxxxxx

This commit is contained in:
2025-12-27 14:20:22 +02:00
parent 3612ada03a
commit 5bfdd7dd2b
26 changed files with 905 additions and 626 deletions

View File

@@ -1,6 +1,5 @@
"use client";
import assert from "assert";
import { proxyFetch } from "./utils";
export type UserProfileDetails = {
@@ -28,7 +27,9 @@ export async function getLoggedInUser(): Promise<{
}
}
);
assert(data.ok);
if (!data.ok) {
return null;
}
const J = await data.json();
if (J.errors) {
return null;