Skip to content

Commit c118260

Browse files
committed
Remove toUpperCase
1 parent 16c3235 commit c118260

14 files changed

Lines changed: 49 additions & 41 deletions

File tree

web/src/components/forms/AddressField/AddressField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ export function AddressField({
206206
errorMessage={error?.message}
207207
menuTrigger="focus"
208208
>
209-
{Object.entries(JURISDICTIONS).map(([id, j]) => (
210-
<ComboBoxItem key={id} id={id.toUpperCase()}>
211-
{j.name}
209+
{Object.entries(JURISDICTIONS).map(([id, jurisdiction]) => (
210+
<ComboBoxItem key={id} id={id}>
211+
{jurisdiction.name}
212212
</ComboBoxItem>
213213
))}
214214
</ComboBox>

web/src/content/forms/court-order-ma-minor/steps/BirthplaceStep.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ export const birthplaceStep = defineStep({
3333
name="birthplaceState"
3434
label="State"
3535
placeholder="Select a state"
36-
options={Object.entries(JURISDICTIONS).map(([id, j]) => ({
37-
label: j.name,
38-
value: id.toUpperCase(),
39-
}))}
36+
options={Object.entries(JURISDICTIONS).map(
37+
([id, jurisdiction]) => ({
38+
label: jurisdiction.name,
39+
value: id,
40+
}),
41+
)}
4042
/>
4143
)}
4244
</FormStep>

web/src/content/forms/court-order-ma-minor/steps/CoGuardianStep.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ function CoGuardianStateField() {
8585
errorMessage={error?.message}
8686
menuTrigger="focus"
8787
>
88-
{Object.entries(JURISDICTIONS).map(([id, j]) => (
89-
<ComboBoxItem key={id} id={id.toUpperCase()}>
90-
{j.name}
88+
{Object.entries(JURISDICTIONS).map(([id, jurisdiction]) => (
89+
<ComboBoxItem key={id} id={id}>
90+
{jurisdiction.name}
9191
</ComboBoxItem>
9292
))}
9393
</ComboBox>

web/src/content/forms/court-order-ma-minor/steps/GuardianStep.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ function GuardianStateField() {
7878
errorMessage={error?.message}
7979
menuTrigger="focus"
8080
>
81-
{Object.entries(JURISDICTIONS).map(([id, j]) => (
82-
<ComboBoxItem key={id} id={id.toUpperCase()}>
83-
{j.name}
81+
{Object.entries(JURISDICTIONS).map(([id, jurisdiction]) => (
82+
<ComboBoxItem key={id} id={id}>
83+
{jurisdiction.name}
8484
</ComboBoxItem>
8585
))}
8686
</ComboBox>

web/src/content/forms/court-order-ma/steps/BirthplaceStep.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export const birthplaceStep = defineStep({
3535
name="birthplaceState"
3636
label="State"
3737
placeholder="Select a state"
38-
options={Object.entries(JURISDICTIONS).map(([id, j]) => ({
39-
label: j.name,
40-
value: id.toUpperCase(),
41-
}))}
38+
options={Object.entries(JURISDICTIONS).map(
39+
([id, jurisdiction]) => ({
40+
label: jurisdiction.name,
41+
value: id,
42+
}),
43+
)}
4244
/>
4345
)}
4446
</FormStep>

web/src/content/forms/court-order-ri/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineForm({
3030
{
3131
...birthCertificateStep,
3232
when: (data) =>
33-
data.birthplaceCountry === "US" && data.birthplaceState === "RI",
33+
data.birthplaceCountry === "US" && data.birthplaceState === "ri",
3434
},
3535
previousNameChangeStep,
3636
familyInfoStep,

web/src/content/forms/court-order-ri/steps/BirthplaceStep.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export const birthplaceStep = defineStep({
3535
name="birthplaceState"
3636
label="State"
3737
placeholder="Select a state"
38-
options={Object.entries(JURISDICTIONS).map(([id, j]) => ({
39-
label: j.name,
40-
value: id.toUpperCase(),
41-
}))}
38+
options={Object.entries(JURISDICTIONS).map(
39+
([id, jurisdiction]) => ({
40+
label: jurisdiction.name,
41+
value: id,
42+
}),
43+
)}
4244
/>
4345
)}
4446
</FormStep>

web/src/content/forms/social-security/steps/BirthplaceStep.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ export const birthplaceStep = defineStep({
3535
name="birthplaceState"
3636
label="State"
3737
placeholder="Select a state"
38-
options={Object.entries(JURISDICTIONS).map(([id, j]) => ({
39-
label: j.name,
40-
value: id.toUpperCase(),
41-
}))}
38+
options={Object.entries(JURISDICTIONS).map(
39+
([id, jurisdiction]) => ({
40+
label: jurisdiction.name,
41+
value: id,
42+
}),
43+
)}
4244
/>
4345
)}
4446
</FormStep>

web/src/content/pdfs/federal/ss5-application-for-social-security-card/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("SS-5 Application for Social Security Card", () => {
1616

1717
// Field 3: Birthplace
1818
birthplaceCity: "Elizabeth",
19-
birthplaceState: "NJ",
19+
birthplaceState: "nj",
2020

2121
// Field 4: Date of Birth
2222
dateOfBirth: "1945-08-24",
@@ -57,7 +57,7 @@ describe("SS-5 Application for Social Security Card", () => {
5757
// Field 16: Address
5858
mailingStreetAddress: "123 Main St",
5959
mailingCity: "New York",
60-
mailingState: "NY",
60+
mailingState: "ny",
6161
mailingZipCode: "10001",
6262

6363
// Field 18: Relationship

web/src/content/pdfs/ma/affidavit-of-indigency/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe("Affidavit of Indigency", () => {
99
oldLastName: "Smith",
1010
residenceStreetAddress: "789 Elm St",
1111
residenceCity: "Springfield",
12-
residenceState: "MA",
12+
residenceState: "ma",
1313
residenceZipCode: "01103",
1414
};
1515

0 commit comments

Comments
 (0)