diff --git a/components/form/demo/register.tsx b/components/form/demo/register.tsx index 0d55048161..f004b481ad 100644 --- a/components/form/demo/register.tsx +++ b/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!')); }, }), ]}