Skip to content

Commit

Permalink
Change kostenlos to YesNoAnswer
Browse files Browse the repository at this point in the history
Co-authored-by: Frederike Ramin <[email protected]>
Co-authored-by: Pram Gurusinga <[email protected]>
Co-authored-by: Hannes Schaletzky <[email protected]>
  • Loading branch information
4 people committed Oct 30, 2023
1 parent c4ce67f commit e8d43ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/flows/fluggastrechte/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"SUBMIT": [
{
"target": "ergebnis/kostenlos-abbruch",
"cond": "kostenlosYesOther"
"cond": "kostenlosYes"
},
{
"target": "rabatt"
Expand Down
2 changes: 1 addition & 1 deletion app/models/flows/fluggastrechte/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const fluggastrechteVorabcheckContext = {
entschaedigung: YesNoAnswer,
gericht: YesNoAnswer,
anwalt: YesNoAnswer,
kostenlos: z.enum(["yesBonus", "yesOther", "no"], customRequiredErrorMessage),
kostenlos: YesNoAnswer,
rabatt: YesNoAnswer,
buchung: YesNoAnswer,
} as const;
Expand Down
3 changes: 1 addition & 2 deletions app/models/flows/fluggastrechte/guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export const guards = {
...yesNoGuards("entschaedigung"),
...yesNoGuards("gericht"),
...yesNoGuards("anwalt"),
kostenlosYesOther: (context: FluggastrechtVorabcheckContext) =>
context.kostenlos === "yesOther",
...yesNoGuards("kostenlos"),
...yesNoGuards("rabatt"),
...yesNoGuards("buchung"),
};

0 comments on commit e8d43ba

Please sign in to comment.