Fixed async issues.

This commit is contained in:
Mike Cao committed 2025-09-23 09:20:51 -07:00
1 parent f639bb07f4
commit b115131f4c
3 files changed
+3 -3

No files matched your search

@@ -21,7 +21,7 @@ export function TeamMemberRemoveButton({
const { mutateAsync, isPending, error } = useDeleteQuery(`/teams/${teamId}/users/${userId}`);
const { touch } = useModified();
const handleConfirm = (close: () => void) => {
const handleConfirm = async (close: () => void) => {
await mutateAsync(null, {
onSuccess: () => {
touch('teams:members');
@@ -21,7 +21,7 @@ export function CohortDeleteButton({
`/websites/${websiteId}/segments/${cohortId}`,
);
const handleConfirm = (close: () => void) => {
const handleConfirm = async (close: () => void) => {
await mutateAsync(null, {
onSuccess: () => {
touch('cohorts');
@@ -21,7 +21,7 @@ export function SegmentDeleteButton({
`/websites/${websiteId}/segments/${segmentId}`,
);
const handleConfirm = (close: () => void) => {
const handleConfirm = async (close: () => void) => {
await mutateAsync(null, {
onSuccess: () => {
touch('segments');