Skip to content

Commit ff1939b

Browse files
committed
Fix defaults
1 parent 7890f83 commit ff1939b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/src/components/tickets-page/use-cart.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export const EMPTY_INITIAL_CART_REDUCER = {
6767
invoiceInformation: {
6868
isBusiness: false,
6969
companyName: "",
70-
name: "",
70+
givenName: "",
71+
familyName: "",
7172
vatId: "",
7273
address: "",
7374
zipCode: "",

frontend/src/components/tickets-page/utils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ type InvoiceInformationKeys = (keyof InvoiceInformationState)[];
99

1010
export const hasOrderInformation = (state: OrderState): boolean => {
1111
const requiredKeys: InvoiceInformationKeys = [
12-
"name",
12+
"givenName",
13+
"familyName",
1314
"address",
1415
"zipCode",
1516
"city",

0 commit comments

Comments
 (0)