diff --git a/resources/js/components/transactions/import-transactions-drawer.tsx b/resources/js/components/transactions/import-transactions-drawer.tsx index b32fc4cf..cb52b810 100644 --- a/resources/js/components/transactions/import-transactions-drawer.tsx +++ b/resources/js/components/transactions/import-transactions-drawer.tsx @@ -293,13 +293,6 @@ export function ImportTransactionsDrawer({ ); const total = newTransactions.length; - const toastId = toast('Importing transactions...', { - icon: , - duration: Infinity, - }); - - onOpenChange(false); - try { if (!selectedAccount) { throw new Error('Selected account not found'); @@ -398,16 +391,16 @@ export function ImportTransactionsDrawer({ toast.success( `${total} transaction${total !== 1 ? 's' : ''} imported`, { - id: toastId, icon: , }, ); + + onOpenChange(false); } catch (err) { toast.error( err instanceof Error ? err.message : 'Failed to import transactions', - { id: toastId }, ); setError( err instanceof Error