diff --git a/app/lib/api-client.ts b/app/lib/api-client.ts index 22c544e..ae7430e 100644 --- a/app/lib/api-client.ts +++ b/app/lib/api-client.ts @@ -1379,7 +1379,6 @@ export async function listSuggestions(session: OAuthSession): Promise '') throw new Error(`API error (${res.status})${body ? `: ${body}` : ''}`) } @@ -1398,7 +1397,6 @@ export async function addSuggestions( body: JSON.stringify({ pubs }), }) if (!res.ok) { - if (res.status === 401) throw new SessionExpiredError() const body = await res.text().catch(() => '') throw new Error(`API error (${res.status})${body ? `: ${body}` : ''}`) } @@ -1413,7 +1411,6 @@ export async function dismissSuggestion(session: OAuthSession, rkey: string): Pr headers: { Authorization: `Bearer ${token}` }, }) if (!res.ok) { - if (res.status === 401) throw new SessionExpiredError() const body = await res.text().catch(() => '') throw new Error(`API error (${res.status})${body ? `: ${body}` : ''}`) }