diff --git a/components/clear-history.tsx b/components/clear-history.tsx index cbe8795..01da0ab 100644 --- a/components/clear-history.tsx +++ b/components/clear-history.tsx @@ -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 && }