Skip to content

Commit 7379ee3

Browse files
authored
Merge pull request #98 from sourcefuse/GH-97
fix(arc-saas): On Selection of "Basic" tier, the size field is expected to be set to an empty string or a default value
2 parents 55cd59c + d8bd0dc commit 7379ee3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/saas-ui/src/app/main/components/add-plan/add-plan.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ export class AddPlanComponent implements OnInit {
103103
const domainData = this.addPlanForm.value;
104104
domainData.price = parseFloat(domainData.price);
105105
domainData.tier = String(domainData.tier);
106+
if (domainData.tier === 'BASIC') {
107+
domainData.size = '';
108+
}
106109
const featuresGroup = this.addPlanForm.get('features') as FormGroup;
107110
const selectedFeatures = Object.keys(featuresGroup.controls)
108111
.filter(

0 commit comments

Comments
 (0)