From fbf85a635e8ac0d8f77cb9ca2063e14ce211ad88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 9 Apr 2023 16:48:35 +0200 Subject: [PATCH] fixed guest creation API front wrapping --- front/API.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/front/API.ts b/front/API.ts index 8fdda06..abb63e1 100644 --- a/front/API.ts +++ b/front/API.ts @@ -140,7 +140,6 @@ export default class API { route: "/auth/guest", method: "POST", }); - if (!response.ok) throw new APIError("Error while creating guest account", response.status, "guestAccountCreationError"); if (!response.access_token) throw new APIError("No access token", response.status); return response.access_token; }