Save event-type's currency on db (#2404)
* Save event-type's currency on db * Add currency field to formMethods definitionpull/2419/head^2
parent
e6587efd27
commit
06df6c9e91
|
@ -472,6 +472,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
requiresConfirmation: boolean;
|
requiresConfirmation: boolean;
|
||||||
schedulingType: SchedulingType | null;
|
schedulingType: SchedulingType | null;
|
||||||
price: number;
|
price: number;
|
||||||
|
currency: string;
|
||||||
hidden: boolean;
|
hidden: boolean;
|
||||||
hideCalendarNotes: boolean;
|
hideCalendarNotes: boolean;
|
||||||
locations: { type: LocationType; address?: string; link?: string }[];
|
locations: { type: LocationType; address?: string; link?: string }[];
|
||||||
|
@ -915,6 +916,9 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
locations,
|
locations,
|
||||||
...input
|
...input
|
||||||
} = values;
|
} = values;
|
||||||
|
|
||||||
|
if (requirePayment) input.currency = currency;
|
||||||
|
|
||||||
updateMutation.mutate({
|
updateMutation.mutate({
|
||||||
...input,
|
...input,
|
||||||
locations,
|
locations,
|
||||||
|
|
Loading…
Reference in New Issue