From 648e552902b783afa92cc2755ae4aff1aa6228c8 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Thu, 28 Mar 2024 21:55:57 +0000 Subject: [PATCH] fix: initial wizard null safety --- new-lamassu-admin/src/pages/Wallet/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/pages/Wallet/helper.js b/new-lamassu-admin/src/pages/Wallet/helper.js index cf2871bd5..d68c4fd71 100644 --- a/new-lamassu-admin/src/pages/Wallet/helper.js +++ b/new-lamassu-admin/src/pages/Wallet/helper.js @@ -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