Skip to content

Commit

Permalink
feat: hide already stored errors that should be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Jan 27, 2025
1 parent 2d7cd83 commit 5a88f54
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export class ReportErrorService {
}

async getErrors(): Promise<StoredFuelWalletError[]> {
return db.errors.toArray();
return (await db.errors.toArray()).filter(
(e) => !getErrorIgnoreData(e?.error)?.action
);
}

async clearErrors() {
Expand Down

0 comments on commit 5a88f54

Please sign in to comment.