Skip to content

Commit

Permalink
fix redirect problem
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Feb 27, 2024
1 parent 0863a25 commit 25ccc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/clear-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export function ClearHistory({ clearChats }: ClearHistoryProps) {
return
}

setOpen(false)
router.push('/')
} catch (error) {
console.error('Error during clear history:', error)
}
setOpen(false)
router.push('/')
}}
>
{isPending && <IconSpinner className="mr-2 animate-spin" />}
Expand Down

0 comments on commit 25ccc9d

Please sign in to comment.