MCPcopy Index your code
hub / github.com/codecombat/codecombat / render

Method render

app/views/core/SubscribeModal.js:104–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 render () {
105 if (this.state === 'purchasing') { return }
106 super.render(...arguments)
107 // NOTE: The PayPal button MUST NOT be removed from the page between clicking it and completing the payment, or the payment is cancelled.
108 this.renderPayPalButton()
109 return null
110 }
111
112 renderPayPalButton () {
113 if (this.$('#paypal-button-container').length && !this.$('#paypal-button-container').children().length) {

Callers 6

constructorMethod · 0.95
onLoadedMethod · 0.95
onSubscriptionErrorMethod · 0.95

Calls 1

renderPayPalButtonMethod · 0.95

Tested by

no test coverage detected