|  |  | 
 |  |  |         notify('common.response.success'); | 
 |  |  |     }; | 
 |  |  |  | 
 |  |  |     const handleError = async (data) => { | 
 |  |  |         notify('common.response.fail'); | 
 |  |  |     const handleError = async (error) => { | 
 |  |  |         notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); | 
 |  |  |     }; | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  | 
 |  |  |                             } | 
 |  |  |                         } | 
 |  |  |                         if (values.password && values.password !== values.confirmPassword) { | 
 |  |  |                             errors.confirmPassword = 'resources.customers.errors.password_mismatch'; | 
 |  |  |                             errors.confirmPassword = 'validate.pwdMisMatch'; | 
 |  |  |                         } | 
 |  |  |                         return errors; | 
 |  |  |                     }}> | 
 |  |  | 
 |  |  |                                     /> | 
 |  |  |                                 </Grid> | 
 |  |  |                                 <Grid item xs={6} display="flex" gap={1}> | 
 |  |  |                                     <PasswordInput source="password" /> | 
 |  |  |                                     <PasswordInput | 
 |  |  |                                         label="table.field.user.password" | 
 |  |  |                                         source="password" | 
 |  |  |                                     /> | 
 |  |  |                                 </Grid> | 
 |  |  |                                 <Grid item xs={6} display="flex" gap={1}> | 
 |  |  |                                     <PasswordInput source="confirmPassword" /> | 
 |  |  |                                     <PasswordInput | 
 |  |  |                                         label="table.field.user.confirmPwd" | 
 |  |  |                                         source="confirmPassword" | 
 |  |  |                                     /> | 
 |  |  |                                 </Grid> | 
 |  |  |                                 <Grid item xs={6} display="flex" gap={1}> | 
 |  |  |                                     <SelectInput |