fix Mixin ID validation when send code (#605)

This commit is contained in:
an-lee
2024-05-13 14:06:26 +08:00
committed by GitHub
parent ffa3561655
commit 0fd6efe9bd

View File

@@ -53,7 +53,7 @@ export const MixinLoginForm = () => {
const validateMixinId = (id: string) => {
setInput(id);
if (id?.match(/^[1-9]\d{5,10}$/)) {
if (id?.match(/^[1-9]\d{4,9}$/)) {
setMixinId(id);
} else {
setMixinId("");