Save event-type's currency on db (#2404)
* Save event-type's currency on db * Add currency field to formMethods definition
This commit is contained in:
		
							parent
							
								
									e6587efd27
								
							
						
					
					
						commit
						06df6c9e91
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -472,6 +472,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => { | |||
|     requiresConfirmation: boolean; | ||||
|     schedulingType: SchedulingType | null; | ||||
|     price: number; | ||||
|     currency: string; | ||||
|     hidden: boolean; | ||||
|     hideCalendarNotes: boolean; | ||||
|     locations: { type: LocationType; address?: string; link?: string }[]; | ||||
|  | @ -915,6 +916,9 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => { | |||
|                       locations, | ||||
|                       ...input | ||||
|                     } = values; | ||||
| 
 | ||||
|                     if (requirePayment) input.currency = currency; | ||||
| 
 | ||||
|                     updateMutation.mutate({ | ||||
|                       ...input, | ||||
|                       locations, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Miguel Nieto A
						Miguel Nieto A