"use strict";

exports.__esModule = true;
exports.validatePayment = void 0;

var validatePayment = function validatePayment(methods, errorLabels) {
  var isMethodSelected = methods.some(function (method) {
    return method.selected;
  });
  return isMethodSelected ? null : {
    paymentMethod: errorLabels.selectPaymentMethod
  };
};

exports.validatePayment = validatePayment;
//# sourceMappingURL=validatePayment.js.map