diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index 71c809ec7..d0b8c2ef6 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -106,7 +106,7 @@ function transactionToPromise(tx: IDBTransaction): Promise { }; tx.onerror = () => { console.error("Transaction failed:", stack); - reject(tx._error); + reject(tx.error); }; }); } @@ -394,8 +394,8 @@ function runWithTransaction>( logger.error(`${stack}`); }; tx.onabort = () => { - if (tx._error) { - logger.error("Transaction aborted with error:", tx._error); + if (tx.error) { + logger.error("Transaction aborted with error:", tx.error); } else { logger.error("Trasaction aborted (no error)"); }