From d2af19ae3c685adaaa2eb9a275dead6e1648fe53 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 17 Aug 2026 00:15:36 -0700 Subject: [PATCH] refac --- src/lib/apis/users/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });