fix: add missing return statement to bitpay ticket

This commit is contained in:
José Oliveira 2022-07-21 10:51:48 +01:00
parent 6b7d2e019d
commit 2c3e0d5d82

View file

@ -39,7 +39,7 @@ function buildTicker (fiatCode, cryptoCode, tickerName) {
const fiatPeggedEquivalent = _.includes(fiatCode, _.keys(PEGGED_FIAT_CURRENCIES))
? PEGGED_FIAT_CURRENCIES[fiatCode]
: fiatCode
if (tickerName === 'bitpay') bitpay.ticker(fiatPeggedEquivalent, cryptoCode)
if (tickerName === 'bitpay') return bitpay.ticker(fiatPeggedEquivalent, cryptoCode)
if (tickerName === 'mock-ticker') return mockTicker.ticker(fiatPeggedEquivalent, cryptoCode)
return ccxt.ticker(fiatPeggedEquivalent, cryptoCode, tickerName)
}