fix: getCryptoUnits default value

fix: `getCryptosFromWalletNamespace` returns 'advanced'
This commit is contained in:
Nikola Ubavic 2022-10-20 20:08:13 +02:00
parent 9234227522
commit 624352607e

View file

@ -145,13 +145,13 @@ const getTriggersAutomation = (customInfoRequests, config) => {
const splitGetFirst = _.compose(_.head, _.split('_')) const splitGetFirst = _.compose(_.head, _.split('_'))
const getCryptosFromWalletNamespace = config => { const getCryptosFromWalletNamespace =
return _.uniq(_.map(splitGetFirst, _.keys(fromNamespace('wallets', config)))) _.compose(_.without(['advanced']), _.uniq, _.map(splitGetFirst), _.keys, fromNamespace('wallets'))
}
const getCashInSettings = config => fromNamespace(namespaces.CASH_IN)(config) const getCashInSettings = config => fromNamespace(namespaces.CASH_IN)(config)
const getCryptoUnits = (crypto, config) => getWalletSettings(crypto, config).cryptoUnits const getCryptoUnits = (crypto, config) =>
getWalletSettings(crypto, config).cryptoUnits ?? 'full'
const setTermsConditions = toNamespace(namespaces.TERMS_CONDITIONS) const setTermsConditions = toNamespace(namespaces.TERMS_CONDITIONS)