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; }