fix: initial wizard null safety

This commit is contained in:
Rafael Taranto 2024-03-28 21:55:57 +00:00
parent 7acc6054f8
commit 0e606a5d5e

View file

@ -208,7 +208,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
const widthAdjust = wizard ? 11 : 0
const viewCryptoCurrency = it => {
const currencyDisplay = R.compose(
it => `${R.prop(['display'])(it)} ${it.isBeta ? '(Beta)' : ''}`,
it => `${R.prop(['display'])(it)} ${it?.isBeta ? '(Beta)' : ''}`,
R.find(R.propEq('code', it))
)(cryptoCurrencies)
return currencyDisplay