|
|
|
@ -82,7 +82,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
deadline_at:moment(data.deadline_at),
|
|
|
|
|
min_price:data.min_price,
|
|
|
|
|
max_price:data.max_price,
|
|
|
|
|
contact_name:data.contact_name,
|
|
|
|
|
contact_name:data.contact_name==null?this.props.current_user.username:data.contact_name,
|
|
|
|
|
phones:data.contact_phone,
|
|
|
|
|
attachments:data.attachments,
|
|
|
|
|
|
|
|
|
@ -91,7 +91,11 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
contact_name:this.props.current_user.username
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let Url = `/api/v1/project_package_categories.json`;
|
|
|
|
|
axios.get(Url).then((response) => {
|
|
|
|
@ -378,6 +382,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(contact_name===undefined||contact_name===""||contact_name===null){
|
|
|
|
|
this.setState({
|
|
|
|
|
contact_nametype:true
|
|
|
|
|