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

Method shouldSeeManualPromotion

app/models/User.js:833–843  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

831 }
832
833 shouldSeeManualPromotion (key) {
834 if (!key) {
835 return false
836 }
837 const seenPromotion = this.getSeenPromotion(key)
838 if (seenPromotion === false) {
839 // don't seePromotion so should show it
840 return true
841 }
842 return false
843 }
844
845 shouldSeePromotion (key) {
846 const manualPromotionKeys = ['end-of-trial-promotion-modal']

Callers 1

shouldSeePromotionMethod · 0.95

Calls 1

getSeenPromotionMethod · 0.95

Tested by

no test coverage detected