Skip to content

Commit

Permalink
chore: code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vstudenichnik-insoft committed Jan 31, 2024
1 parent 3f3e6d4 commit 27d51e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/google/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class StripeGooglePayment extends Payment {
const paymentRequest = this._createPaymentRequest(cart);
const canMakePayment = await paymentRequest.canMakePayment();

if (!canMakePayment || !canMakePayment.googlePay) {
if (!canMakePayment?.googlePay) {
throw new Error(
'This device is not capable of making Google Pay payments',
);
Expand Down

0 comments on commit 27d51e6

Please sign in to comment.