[firestore] added missing conditional for firestore transaction errors - should now error on failed promise validations
This commit is contained in:
parent
5589ed7f4f
commit
b534e02016
|
@ -179,7 +179,7 @@ export default class TransactionHandler {
|
||||||
// reject the final promise and remove from native
|
// reject the final promise and remove from native
|
||||||
// update is failed when either the users updateFunction
|
// update is failed when either the users updateFunction
|
||||||
// throws an error or rejects a promise
|
// throws an error or rejects a promise
|
||||||
if (updateFailed) {
|
if (updateFailed || finalError) {
|
||||||
// $FlowExpectedError: Reject will always be present
|
// $FlowExpectedError: Reject will always be present
|
||||||
return reject(finalError);
|
return reject(finalError);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue