add document marking page

This commit is contained in:
smanylov
2026-02-07 12:28:07 +07:00
parent 256ecbe31f
commit 7572c1ada2
7 changed files with 97 additions and 5 deletions
+14
View File
@@ -214,6 +214,7 @@ export async function registration(
phone: phone,
password,
accountType,
/* referralLink: referralCode, */
...(accountType === 'b2b' && { companyName: companyName })
}
}),
@@ -223,6 +224,16 @@ export async function registration(
}
});
console.log({
fullName: fullName,
email,
phone: phone,
password,
accountType,
/* referralLink: referralCode, */
...(accountType === 'b2b' && { companyName: companyName })
})
if (response.ok) {
let parsed = await response.json() as {
message_desc: string,
@@ -230,6 +241,8 @@ export async function registration(
message_code: number
};
console.log(parsed);
if (parsed.message_code === 0) {
console.log(`registration - ${accountType}`);
console.log({
@@ -238,6 +251,7 @@ export async function registration(
phone: phone,
password,
accountType,
referralLink: 'fds324',
...(accountType === 'b2b' && { companyName: companyName })
});
await createSession(parsed.message_body.token, email as string);