Fixed async issues.

This commit is contained in:
Mike Cao 2025-09-23 09:20:51 -07:00
parent f639bb07f4
commit b115131f4c
3 changed files with 3 additions and 3 deletions

View file

@ -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');

View file

@ -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');