From 58ef1e13df9b101dde9ece2f67344dc5a6ba8e91 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 9 Feb 2021 19:40:24 +0100 Subject: [PATCH] fix build error from rename --- packages/taler-wallet-core/src/util/query.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)"); }