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

Function activeCouponID

app/core/store/modules/products.js:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 getters: {
47 activeCouponID () {
48 const couponID = utils.getQueryVariable('coupon') || me.get('country')
49 if (couponID === 'brazil') {
50 // Edge case due to misconfigured brazil coupon in stripe that is immutable
51 return 'brazil-annual'
52 }
53 return couponID
54 },
55
56 basicSubscriptionForCurrentUser (state) {
57 if (!Array.isArray(state.products) || state.products.length === 0) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected