@@ -941,7 +941,7 @@ const Attendee = (attendeeProps: AttendeeProps & NoShowProps) => {
941
941
const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
942
942
onSuccess : async ( data ) => {
943
943
showToast ( data . message , "success" ) ;
944
- utils . viewer . bookings . invalidate ( ) ;
944
+ await utils . viewer . bookings . invalidate ( ) ;
945
945
} ,
946
946
onError : ( err ) => {
947
947
showToast ( err . message , "error" ) ;
@@ -1030,9 +1030,11 @@ const GroupedAttendees = (groupedAttendeeProps: GroupedAttendeeProps) => {
1030
1030
} ;
1031
1031
} ) ;
1032
1032
const { t } = useLocale ( ) ;
1033
+ const utils = trpc . useUtils ( ) ;
1033
1034
const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
1034
1035
onSuccess : async ( data ) => {
1035
1036
showToast ( t ( data . message ) , "success" ) ;
1037
+ await utils . viewer . bookings . invalidate ( ) ;
1036
1038
} ,
1037
1039
onError : ( err ) => {
1038
1040
showToast ( err . message , "error" ) ;
@@ -1133,6 +1135,7 @@ const NoShowAttendeesDialog = ({
1133
1135
} ) )
1134
1136
) ;
1135
1137
1138
+ const utils = trpc . useUtils ( ) ;
1136
1139
const noShowMutation = trpc . viewer . loggedInViewerRouter . markNoShow . useMutation ( {
1137
1140
onSuccess : async ( data ) => {
1138
1141
const newValue = data . attendees [ 0 ] ;
@@ -1142,6 +1145,7 @@ const NoShowAttendeesDialog = ({
1142
1145
)
1143
1146
) ;
1144
1147
showToast ( t ( data . message ) , "success" ) ;
1148
+ await utils . viewer . bookings . invalidate ( ) ;
1145
1149
} ,
1146
1150
onError : ( err ) => {
1147
1151
showToast ( err . message , "error" ) ;
@@ -1172,7 +1176,7 @@ const NoShowAttendeesDialog = ({
1172
1176
</ div >
1173
1177
</ form >
1174
1178
) ) }
1175
- < DialogFooter >
1179
+ < DialogFooter noSticky >
1176
1180
< DialogClose > { t ( "done" ) } </ DialogClose >
1177
1181
</ DialogFooter >
1178
1182
</ DialogContent >
0 commit comments