From b534e020165a37f2048ac37ad58e6c0b57767380 Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 16 Apr 2018 16:20:33 +0100 Subject: [PATCH] [firestore] added missing conditional for firestore transaction errors - should now error on failed promise validations --- lib/modules/firestore/TransactionHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/firestore/TransactionHandler.js b/lib/modules/firestore/TransactionHandler.js index 1f424a80..b8673729 100644 --- a/lib/modules/firestore/TransactionHandler.js +++ b/lib/modules/firestore/TransactionHandler.js @@ -179,7 +179,7 @@ export default class TransactionHandler { // reject the final promise and remove from native // update is failed when either the users updateFunction // throws an error or rejects a promise - if (updateFailed) { + if (updateFailed || finalError) { // $FlowExpectedError: Reject will always be present return reject(finalError); }