feat: retry send

This commit is contained in:
archer
2023-09-07 17:06:17 +08:00
parent 6f2d556a87
commit 1b7f87752a
9 changed files with 67 additions and 47 deletions

View File

@@ -25,7 +25,7 @@ const UpdatePswModal = ({ onClose }: { onClose: () => void }) => {
const { mutate: onSubmit, isLoading } = useRequest({
mutationFn: (data: FormType) => {
if (data.newPsw !== data.confirmPsw) {
return Promise.reject(t('commom.Password inconsistency'));
return Promise.reject(t('common.Password inconsistency'));
}
return updatePasswordByOld(data);
},