diff --git a/src/lib/apis/users/index.ts b/src/lib/apis/users/index.ts index b48c3b27cd..a6da772d18 100644 --- a/src/lib/apis/users/index.ts +++ b/src/lib/apis/users/index.ts @@ -286,7 +286,7 @@ export const getUserSettings = async (token: string, raw = false) => { }) .catch((err) => { console.error(err); - error = err.detail; + error = err?.detail ?? err; return null; });