mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
fix(client): prevent PayPal script loads in development (#38785)
This commit is contained in:
committed by
GitHub
parent
c0905959a0
commit
88b263fef8
@@ -34,7 +34,7 @@ export class PayPalButtonScriptLoader extends Component {
|
||||
|
||||
loadScript(subscription, deleteScript) {
|
||||
if (deleteScript) scriptRemover('paypal-sdk');
|
||||
let queries = `?client-id=${this.props.clinetId}&disable-funding=credit,card`;
|
||||
let queries = `?client-id=${this.props.clientId}&disable-funding=credit,card`;
|
||||
if (subscription) queries += '&vault=true';
|
||||
|
||||
scriptLoader(
|
||||
@@ -92,7 +92,7 @@ export class PayPalButtonScriptLoader extends Component {
|
||||
}
|
||||
|
||||
const propTypes = {
|
||||
clinetId: PropTypes.string,
|
||||
clientId: PropTypes.string,
|
||||
createOrder: PropTypes.func,
|
||||
createSubscription: PropTypes.func,
|
||||
donationAmount: PropTypes.number,
|
||||
|
||||
Reference in New Issue
Block a user