From 092a313b70799bc2d84a2889a41c0c8f76c4a3fd Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Mon, 27 Jan 2025 20:31:49 -0300 Subject: [PATCH] fix: not awaiting for dismiss --- .../app/src/systems/Error/services/ReportErrorService.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/src/systems/Error/services/ReportErrorService.tsx b/packages/app/src/systems/Error/services/ReportErrorService.tsx index 41cf8e30a..13541af39 100644 --- a/packages/app/src/systems/Error/services/ReportErrorService.tsx +++ b/packages/app/src/systems/Error/services/ReportErrorService.tsx @@ -69,7 +69,9 @@ export class ReportErrorService { if (errorIgnoreData?.action === 'hide') { captureException(e.error, e.extra); } - this.dismissError(e.id).finally(() => resolve(true)); + return resolve( + this.dismissError(e.id).finally(() => resolve(true)) + ); }) ); }