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

Method getPriceInUsd

app/views/admin/AnalyticsView.js:383–391  ·  view source on GitHub ↗
(price, currency)

Source from the content-addressed store, hash-verified

381 }
382
383 const getPriceInUsd = (price, currency) => {
384 if (!currency) { return price }
385 const exchangeVal = this.exchangeRate[currency]
386 if (!exchangeVal) {
387 console.log('no converter for currency', currency)
388 return price
389 }
390 return parseInt(price / exchangeVal, 10)
391 }
392
393 // Organize data by day, then group
394 const groupMap = {}

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected