@@ -941,7 +941,7 @@ const Attendee = (attendeeProps: AttendeeProps & NoShowProps) => {
941941 const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
942942 onSuccess : async ( data ) => {
943943 showToast ( data . message , "success" ) ;
944- utils . viewer . bookings . invalidate ( ) ;
944+ await utils . viewer . bookings . invalidate ( ) ;
945945 } ,
946946 onError : ( err ) => {
947947 showToast ( err . message , "error" ) ;
@@ -1030,9 +1030,11 @@ const GroupedAttendees = (groupedAttendeeProps: GroupedAttendeeProps) => {
10301030 } ;
10311031 } ) ;
10321032 const { t } = useLocale ( ) ;
1033+ const utils = trpc . useUtils ( ) ;
10331034 const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
10341035 onSuccess : async ( data ) => {
10351036 showToast ( t ( data . message ) , "success" ) ;
1037+ await utils . viewer . bookings . invalidate ( ) ;
10361038 } ,
10371039 onError : ( err ) => {
10381040 showToast ( err . message , "error" ) ;
@@ -1133,6 +1135,7 @@ const NoShowAttendeesDialog = ({
11331135 } ) )
11341136 ) ;
11351137
1138+ const utils = trpc . useUtils ( ) ;
11361139 const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
11371140 onSuccess : async ( data ) => {
11381141 const newValue = data . attendees [ 0 ] ;
@@ -1142,6 +1145,7 @@ const NoShowAttendeesDialog = ({
11421145 )
11431146 ) ;
11441147 showToast ( t ( data . message ) , "success" ) ;
1148+ await utils . viewer . bookings . invalidate ( ) ;
11451149 } ,
11461150 onError : ( err ) => {
11471151 showToast ( err . message , "error" ) ;
@@ -1172,7 +1176,7 @@ const NoShowAttendeesDialog = ({
11721176 </ div >
11731177 </ form >
11741178 ) ) }
1175- < DialogFooter >
1179+ < DialogFooter noSticky >
11761180 < DialogClose > { t ( "done" ) } </ DialogClose >
11771181 </ DialogFooter >
11781182 </ DialogContent >
0 commit comments