Fix subscription method issue

This commit is contained in:
Jayasanka 2019-09-30 14:08:28 +05:30
parent 7e62c6a781
commit a2341e8afc
2 changed files with 2 additions and 1 deletions

View File

@ -69,9 +69,11 @@ class AddNewAppFormComponent extends React.Component {
isError: false isError: false
}); });
const {application} = this.state; const {application} = this.state;
const {price} = application;
const {data, release} = releaseData; const {data, release} = releaseData;
const {formConfig} = this.props; const {formConfig} = this.props;
application.subMethod = (price === 0) ? "FREE" : "PAID";
//add release wrapper //add release wrapper
application[formConfig.releaseWrapperName] = [release]; application[formConfig.releaseWrapperName] = [release];

View File

@ -62,7 +62,6 @@ class NewAppDetailsForm extends React.Component {
name, name,
description, description,
categories, categories,
subMethod: (price === undefined || parseInt(price) === 0) ? "FREE" : "PAID",
tags, tags,
unrestrictedRoles: [], unrestrictedRoles: [],
}; };