feat: add profile language preferences and refine toast, dropdown and history UI
This commit is contained in:
@@ -11,7 +11,7 @@ const RESOURCE_ACCESS_ERROR_PATTERN = /(?:invalid password|password required|aut
|
||||
|
||||
export function isResourceAccessError(error) {
|
||||
const status = Number(error?.status);
|
||||
const message = typeof error === "string" ? error : error?.message;
|
||||
const message = typeof error === "string" ? error : (error?.serverMessage || error?.message);
|
||||
return status === 401 || RESOURCE_ACCESS_ERROR_PATTERN.test(String(message || ""));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user