Skip to content

Commit

Permalink
Merge pull request #20 from dsaltares/chore/show-error-import
Browse files Browse the repository at this point in the history
chore: show error toast on import failure
  • Loading branch information
dsaltares authored Oct 1, 2024
2 parents f433acd + 91b09e4 commit 115c976
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 115c976

Please sign in to comment.