mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 14:43:06 +08:00
remove unused object
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user