From 435540f158a434f775b474a488f91c5c9174e33c Mon Sep 17 00:00:00 2001 From: Oliver Bryan <04oliverbryan@gmail.com> Date: Wed, 31 Dec 2025 18:54:34 +0000 Subject: [PATCH] fix: bad error check --- packages/frontend/src/lib/server/organisation/byUser.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/frontend/src/lib/server/organisation/byUser.ts b/packages/frontend/src/lib/server/organisation/byUser.ts index dedb31e..cbe892c 100644 --- a/packages/frontend/src/lib/server/organisation/byUser.ts +++ b/packages/frontend/src/lib/server/organisation/byUser.ts @@ -17,14 +17,9 @@ export async function byUser({ if (!res.ok) { const error = await res.text(); - onError?.(error || `failed to create organisation (${res.status})`); + onError?.(error || `failed to get organisations (${res.status})`); } else { const data = await res.json(); - if (!data.id) { - onError?.(`failed to create organisation (${res.status})`); - return; - } - onSuccess?.(data, res); } }