Skip to content

Commit

Permalink
Merge pull request #2106 from fecgov/feature/1229
Browse files Browse the repository at this point in the history
feature/1229 - Update filing frequency toggle to default based on the filing frequency of the committee
  • Loading branch information
toddlees authored Sep 6, 2024
2 parents 857bc4f + ed2d7f5 commit ac0e486
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class CreateF3XStep1Component extends DestroyerComponent implements OnIni
.pipe(takeUntil(this.destroy$))
.subscribe(([committeeAccount, existingCoverage]) => {
this.committeeAccount = committeeAccount;
const filingFrequency = this.userCanSetFilingFrequency ? 'Q' : committeeAccount?.filing_frequency;
const filingFrequency = committeeAccount?.filing_frequency === 'M' ? 'M' : 'Q';
this.form.addControl('filing_frequency', new FormControl());
this.form.addControl('report_type_category', new FormControl());
this.form?.patchValue({ filing_frequency: filingFrequency, form_type: 'F3XN' });
Expand Down

0 comments on commit ac0e486

Please sign in to comment.