diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/AddNewAppForm.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/AddNewAppForm.js index dbbebfc2011..24641f78390 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/AddNewAppForm.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/AddNewAppForm.js @@ -69,9 +69,11 @@ class AddNewAppFormComponent extends React.Component { isError: false }); const {application} = this.state; + const {price} = application; const {data, release} = releaseData; const {formConfig} = this.props; + application.subMethod = (price === 0) ? "FREE" : "PAID"; //add release wrapper application[formConfig.releaseWrapperName] = [release]; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppDetailsForm.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppDetailsForm.js index 443fac99d1b..6f9ac641abb 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppDetailsForm.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppDetailsForm.js @@ -62,7 +62,6 @@ class NewAppDetailsForm extends React.Component { name, description, categories, - subMethod: (price === undefined || parseInt(price) === 0) ? "FREE" : "PAID", tags, unrestrictedRoles: [], };