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

Method success

app/views/ladder/LadderPlayModal.js:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 const success = nameMap => {
131 // it seems to be fix that could go to both
132 this.nameMap = nameMap
133 if (this.destroyed) { return }
134 for (challenger of _.values(this.challengers)) {
135 challenger.opponentName = this.nameMap[challenger.opponentID]?.fullName || this.nameMap[challenger.opponentID]?.name || 'Anonymous'
136 challenger.opponentWizard = this.nameMap[challenger.opponentID]?.wizard || {}
137 }
138 return this.checkWizardLoaded()
139 }
140
141 const data = { ids, wizard: true }
142 if (this.options.league) {

Callers

nothing calls this directly

Calls 1

checkWizardLoadedMethod · 0.95

Tested by

no test coverage detected