@@ -40,19 +40,19 @@ export function useCreateAttendee(
4040
4141 return useMutation ( {
4242 mutationFn : ( data : CreateAttendeeRequest ) => apiClient . createAttendee ( data ) ,
43- onSuccess : ( data , variables , context , mutationContext ) => {
43+ onSuccess : ( data , variables , context ) => {
4444 if ( showSuccessToast ) {
4545 toast . success ( successMessage ) ;
4646 }
47- options ?. onSuccess ?.( data , variables , context , mutationContext ) ;
47+ options ?. onSuccess ?.( data , variables , context , undefined as any ) ;
4848 } ,
49- onError : ( error , variables , context , mutationContext ) => {
49+ onError : ( error , variables , context ) => {
5050 if ( showErrorToast ) {
5151 const message =
5252 errorMessage || error . message || 'Failed to create attendee' ;
5353 toast . error ( message ) ;
5454 }
55- options ?. onError ?.( error , variables , context , mutationContext ) ;
55+ options ?. onError ?.( error , variables , context , undefined as any ) ;
5656 } ,
5757 ...mutationOptions ,
5858 } ) ;
@@ -81,19 +81,19 @@ export function useInitiatePayment(
8181 return useMutation ( {
8282 mutationFn : ( data : InitiatePaymentRequest ) =>
8383 apiClient . initiatePayment ( data ) ,
84- onSuccess : ( data , variables , context , mutationContext ) => {
84+ onSuccess : ( data , variables , context ) => {
8585 if ( showSuccessToast ) {
8686 toast . success ( successMessage ) ;
8787 }
88- options ?. onSuccess ?.( data , variables , context , mutationContext ) ;
88+ options ?. onSuccess ?.( data , variables , context , undefined as any ) ;
8989 } ,
90- onError : ( error , variables , context , mutationContext ) => {
90+ onError : ( error , variables , context ) => {
9191 if ( showErrorToast ) {
9292 const message =
9393 errorMessage || error . message || 'Failed to initialize payment' ;
9494 toast . error ( message ) ;
9595 }
96- options ?. onError ?.( error , variables , context , mutationContext ) ;
96+ options ?. onError ?.( error , variables , context , undefined as any ) ;
9797 } ,
9898 ...mutationOptions ,
9999 } ) ;
0 commit comments