Skip to content

Commit

Permalink
chore: show error toast on import failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaltares committed Oct 1, 2024
1 parent 81cf71c commit 91b09e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/useImportTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const useImportTransactions = (account: Account) => {
} catch (e) {
// eslint-disable-next-line no-console
console.error(e);
enqueueSnackbar({
message: 'Failed to import transactions.',
variant: 'error',
});
}
},
[preset, categories, createTransactions, account.id, navigate],
Expand Down

0 comments on commit 91b09e4

Please sign in to comment.