MCPcopy Create free account
hub / github.com/codecombat/codecombat / adjustedPrice

Method adjustedPrice

app/models/Product.js:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 adjustedPrice () {
31 let amt = this.get('amount')
32 if ((this.get('coupons') != null) && (this.get('coupons').length > 0)) {
33 amt = this.get('coupons')[0].amount
34 }
35 return amt
36 }
37
38 translateName () {
39 if (/year_subscription/.test(this.get('name'))) {

Calls 1

getMethod · 0.45

Tested by

no test coverage detected