верификация и инн отправляют полные данные
This commit is contained in:
parent
7a875819d5
commit
7729b293c0
@ -24,6 +24,7 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
|
|||||||
const [verificationResponse, verificationError] = await verification(
|
const [verificationResponse, verificationError] = await verification(
|
||||||
userId
|
userId
|
||||||
);
|
);
|
||||||
|
console.log(verificationResponse)
|
||||||
|
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
|
|
||||||
@ -39,9 +40,15 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const debouncedINNHC = useDebouncedCallback((str) => {
|
const debouncedINNHC = useDebouncedCallback((str) => {
|
||||||
|
if (!verificationInfo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
patchVerification({
|
patchVerification({
|
||||||
taxnumber: str.replace(/[^0-9]/g,""),
|
comment,
|
||||||
|
taxnumber: str,
|
||||||
id: verificationInfo?._id,
|
id: verificationInfo?._id,
|
||||||
|
status: verificationInfo?.status,
|
||||||
|
accepted: verificationInfo?.accepted,
|
||||||
});
|
});
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
@ -59,6 +66,7 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
|
|||||||
accepted,
|
accepted,
|
||||||
comment,
|
comment,
|
||||||
id: verificationInfo._id,
|
id: verificationInfo._id,
|
||||||
|
taxnumber: INN,
|
||||||
status: verificationInfo.status,
|
status: verificationInfo.status,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -136,8 +144,8 @@ export const VerificationTab = ({ userId }: VerificationTabProps) => {
|
|||||||
if (!verificationInfo) {
|
if (!verificationInfo) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setINN(event.target.value)
|
setINN(event.target.value.replace(/[^0-9]/g,""))
|
||||||
debouncedINNHC(event.target.value)}
|
debouncedINNHC(event.target.value.replace(/[^0-9]/g,""))}
|
||||||
}
|
}
|
||||||
placeholder="ИНН"
|
placeholder="ИНН"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user