[firestore] added missing conditional for firestore transaction errors - should now error on failed promise validations

This commit is contained in:
Salakar 2018-04-16 16:20:33 +01:00
parent 5589ed7f4f
commit b534e02016
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}