Skip to content

Commit

Permalink
fix(suite): handle rejection on db dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrjpolak committed Jan 27, 2025
1 parent e47bf08 commit 5b36afc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/suite/src/support/suite/preloadStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export const preloadStore = async () => {
db.onBlocked = () => resolve('blocked');
db.onBlocking = () => resolve('blocking');
// initialize
db.getDB().then(() => resolve(undefined));
db.getDB()
.then(() => resolve(undefined))
.catch(() => {}); // So there isn't unhandled rejection
});

if (dbError) {
Expand Down

0 comments on commit 5b36afc

Please sign in to comment.