intake: guard hoisted history/revenue step scripts
This commit is contained in:
parent
bb3604c97b
commit
539fad1396
2 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
|||
</style>
|
||||
|
||||
<script>
|
||||
if (document.querySelector('[data-slug="history"], [data-step="history"]')) {
|
||||
const yearI = document.getElementById("pw-hist-year") as HTMLInputElement;
|
||||
const monthI = document.getElementById("pw-hist-month") as HTMLInputElement;
|
||||
const preI = document.getElementById("pw-hist-pre1999") as HTMLInputElement;
|
||||
|
|
@ -64,4 +65,5 @@
|
|||
first_telecom_service_pre_1999: preI.checked,
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -123,6 +123,8 @@ import { SAFE_HARBOR_PCT_BY_YEAR, SAFE_HARBOR_DISALLOWED_CATEGORIES } from "../.
|
|||
import { SAFE_HARBOR_PCT_BY_YEAR, SAFE_HARBOR_DISALLOWED_CATEGORIES } from "../../../lib/fcc_constants";
|
||||
import { fetchSafeHarborRecommendation, recommendationBadge } from "../../../lib/safe_harbor_recommender";
|
||||
|
||||
if (document.querySelector('[data-slug="revenue"], [data-step="revenue"]')) {
|
||||
|
||||
// Line definitions — subset of LINE_FILL_MAP. key matches the
|
||||
// source_key used by form_499a.py.
|
||||
type LineDef = { key: string; label: string; line_no: string; desc: string; categories: string[] | null; };
|
||||
|
|
@ -372,4 +374,5 @@ import { SAFE_HARBOR_PCT_BY_YEAR, SAFE_HARBOR_DISALLOWED_CATEGORIES } from "../.
|
|||
const st = PW.get();
|
||||
PW.set({ entity: { ...st.entity, safe_harbor_election: election } });
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue