Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 19x 18x 19x 47x 19x 18x | export const getDefaultValues = (
leType: string,
fullOwnershipReleased: number,
) => ({
isOwner: fullOwnershipReleased ? false : getIsOwnerCheckedByDefault(leType),
tinType: "",
base: {
dob: "",
firstName: "",
isManager: false,
lastName: "",
phoneNumber: "",
},
whenIsOwner: {
address: {
country: "US",
city: "",
line1: "",
state: "",
zip: "",
},
ssn: "",
ein: "",
tinType: "ssn",
ownership: ["tax_exempt_organization", "government_agency"].includes(leType)
? "0"
: "",
},
});
export const getIsOwnerCheckedByDefault = (leType: string) => {
// ownership check box is checked initially for these business types
return [
"tax_exempt_organization",
"government_agency",
"individual_sole_proprietorship",
].includes(leType);
};
export const getIsOwnerBoxDisabled = (
leType: string,
fullOwnershipReleased: number,
) => {
// ownership checkbox is disabled for these business types
return (
fullOwnershipReleased === 100 ||
["tax_exempt_organization", "government_agency"].includes(leType)
);
};
|