Skip to content

Commit

Permalink
refactor(TGA): remove unneeded fields
Browse files Browse the repository at this point in the history
Co-Authored-By: Pram Gurusinga <[email protected]>
  • Loading branch information
chohner and pgurusinga committed Oct 27, 2023
1 parent 06ca71f commit 5e79391
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions app/models/flows/geldEinklagenFormular/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ import {
adresse,
namePrivatPerson,
persoenlicheDaten,
titleSchema,
} from "../persoenlicheDaten/context";

export const context = {
anzahl: z.enum(["1", "2", "3"], customRequiredErrorMessage),
...namePrivatPerson,
...persoenlicheDaten,
...adresse,
titel: titleSchema, //TODO: remove and replace by persoenlicheDaten.title after merge
volljaerig: YesNoAnswer,
strasse: inputRequiredSchema, // TODO: replace by adresse.strasseHausnummer after merge
gesetzlicheVertretung: YesNoAnswer,
gegenseite: z
.object({
Expand Down
2 changes: 1 addition & 1 deletion app/models/flows/persoenlicheDaten/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { inputRequiredSchema } from "~/services/validation/inputRequired";
import { phoneNumberSchema } from "~/services/validation/phoneNumber";
import { postcodeSchema } from "~/services/validation/postcode";

export const titleSchema = z.enum(["", "dr"]);
const titleSchema = z.enum(["", "dr"]);

export const adresse = {
strasseHausnummer: inputRequiredSchema,
Expand Down

0 comments on commit 5e79391

Please sign in to comment.