diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index c67745ee..5539fb15 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -243,7 +243,7 @@ export default class exchangedit extends React.Component { getReseller(req.plan.reseller_id).then((res) => { handelResponse(res, (req1, msg) => { console.log("req ==>1", req1); - req.receive_email = req1.contact_email[0]; + req1.receive_email = req1.contact_email[0]; this.setState({ reseller: req1 }); this.setState({ phone_list: req1.contact_phone }); this.setState({ email_list: req1.contact_email }); @@ -443,8 +443,9 @@ export default class exchangedit extends React.Component { let data = this.buildData(); let approval_id = sessionStorage.getItem("approval_id"); + console.log("approval_id ==>", approval_id); - if (approval_id <= 0) { + if (Number(approval_id) <= 0) { getIsRequireApproval(code_batch_id, data).then((res) => { handelResponse( res,