Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 14e8b1b01d | |||
| 504bfbcae4 |
@@ -56,8 +56,8 @@ export default function ProfileCompleteCom() {
|
|||||||
const mutation = useMutation({
|
const mutation = useMutation({
|
||||||
mutationFn: (fields) => {
|
mutationFn: (fields) => {
|
||||||
const {practice, specialization} = fields
|
const {practice, specialization} = fields
|
||||||
if (!practice || !specialization) {
|
if (!practice || !specialization || !url_name) {
|
||||||
throw new Error('Please select both practice and specialization fields')
|
throw new Error('Please select both practice, specialization fields and URL_Name')
|
||||||
}
|
}
|
||||||
return completeProfile(fields)
|
return completeProfile(fields)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user