Browse Source

docs: fix error syntax (#42824)

Co-authored-by: Ali <ali.wu@miotech.com>
pull/42831/head
ZhuoYang Wu(阿离) 1 year ago
committed by GitHub
parent
commit
7c23f844ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/form/demo/register.tsx

2
components/form/demo/register.tsx

@ -176,7 +176,7 @@ const App: React.FC = () => {
if (!value || getFieldValue('password') === value) {
return Promise.resolve();
}
return Promise.reject(new Error('The two passwords that you entered do not match!'));
return Promise.reject(new Error('The new password that you entered do not match!'));
},
}),
]}

Loading…
Cancel
Save