Skip to content

Commit

Permalink
Adds missing .catch method call in useCheckoutPricing
Browse files Browse the repository at this point in the history
This was missed in an earlier PR and revealed in testing.
  • Loading branch information
dbrudner committed Jan 29, 2020
1 parent c92d571 commit 635d184
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/use-checkout-pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function useCheckoutPricing(initialInputs = {}, handleError = thr
const { subscriptions = [] } = input;
addSubscriptions(subscriptions, checkoutPricing)
.then(() => {
checkoutPricing = checkoutPricing.catch(handleError);
setPricing(checkoutPricing);
})
.catch(handleError)
Expand Down

0 comments on commit 635d184

Please sign in to comment.