From 109365c4320cc191b539fe78bc6e0ef909ed9765 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 17 Jul 2025 21:03:05 -0700 Subject: [PATCH] remove unused object --- apps/client/src/features/auth/hooks/use-auth.ts | 9 +++------ .../src/features/workspace/services/workspace-service.ts | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/client/src/features/auth/hooks/use-auth.ts b/apps/client/src/features/auth/hooks/use-auth.ts index b7a7d39e..decb393f 100644 --- a/apps/client/src/features/auth/hooks/use-auth.ts +++ b/apps/client/src/features/auth/hooks/use-auth.ts @@ -69,12 +69,9 @@ export default function useAuth() { if (response?.requiresLogin) { notifications.show({ - message: - response.message || - t( - "Account created successfully. Please log in to set up two-factor authentication.", - ), - color: "green", + message: t( + "Account created successfully. Please log in to set up two-factor authentication.", + ), }); navigate(APP_ROUTE.AUTH.LOGIN); } else { diff --git a/apps/client/src/features/workspace/services/workspace-service.ts b/apps/client/src/features/workspace/services/workspace-service.ts index 784b131b..dd404806 100644 --- a/apps/client/src/features/workspace/services/workspace-service.ts +++ b/apps/client/src/features/workspace/services/workspace-service.ts @@ -66,7 +66,7 @@ export async function createInvitation(data: ICreateInvite) { return req.data; } -export async function acceptInvitation(data: IAcceptInvite): Promise<{ requiresLogin?: boolean; message?: string }> { +export async function acceptInvitation(data: IAcceptInvite): Promise<{ requiresLogin?: boolean; }> { const req = await api.post("/workspace/invites/accept", data); return req.data; }