diff options
author | Florian Dold <florian@dold.me> | 2021-02-09 19:40:24 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-09 19:40:24 +0100 |
commit | 58ef1e13df9b101dde9ece2f67344dc5a6ba8e91 (patch) | |
tree | 4899e8b7e74ac795c47074e8e75aa2a7b4be3953 | |
parent | 8c92499d85917693d2f87252419f0eeccd239a2b (diff) |
fix build error from rename
-rw-r--r-- | packages/taler-wallet-core/src/util/query.ts | 6 |
1 files 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<void> { }; tx.onerror = () => { console.error("Transaction failed:", stack); - reject(tx._error); + reject(tx.error); }; }); } @@ -394,8 +394,8 @@ function runWithTransaction<T, StoreTypes extends Store<string, {}>>( 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)"); } |