diff --git a/src/component/profile_complete/ProfileCompleteCom.jsx b/src/component/profile_complete/ProfileCompleteCom.jsx index 61ef379..c879c63 100644 --- a/src/component/profile_complete/ProfileCompleteCom.jsx +++ b/src/component/profile_complete/ProfileCompleteCom.jsx @@ -56,8 +56,8 @@ export default function ProfileCompleteCom() { const mutation = useMutation({ mutationFn: (fields) => { const {practice, specialization} = fields - if (!practice || !specialization) { - throw new Error('Please select both practice and specialization fields') + if (!practice || !specialization || !url_name) { + throw new Error('Please select both practice, specialization fields and URL_Name') } return completeProfile(fields) },