Skip to content

Commit

Permalink
Update Booknow.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasath2004 authored Mar 11, 2024
1 parent 8f48f34 commit 58041b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Booknow.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ const Booknow = () => {
if(
detail.name.length>=3 && detail.MobileNumber.length===10 && detail.FunctionName.length>=3 && detail.Members.length>=1 && detail.Address.length>=4){
setChecker(pre=>({...pre,booking_loaded:true}))
let dish=dishNames.map(item=>item.name)
await axios.post('https://cooking-management-system-backend.vercel.app/details',{
detail:detail,
dish:dishNames,
dish:dish,
cheif:checker.image===undefined?'No more cook selected':checker.image
})
}
Expand Down

0 comments on commit 58041b6

Please sign in to comment.