From 33b72aa9fd5a490e096197f37375a7798380f153 Mon Sep 17 00:00:00 2001 From: Nikola Ubavic <53820106+ubavic@users.noreply.github.com> Date: Thu, 20 Oct 2022 20:10:36 +0200 Subject: [PATCH] fix: coin-specific `cryptoUnits` in the Wizard --- .../src/pages/Wizard/components/Wallet/AllSet.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js index ae891826..911762c8 100644 --- a/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js +++ b/new-lamassu-admin/src/pages/Wizard/components/Wallet/AllSet.js @@ -1,5 +1,4 @@ import { useQuery, useMutation } from '@apollo/react-hooks' -import { utils as coinUtils } from '@lamassu/coins' import { makeStyles } from '@material-ui/core' import gql from 'graphql-tag' import * as R from 'ramda' @@ -54,13 +53,9 @@ const AllSet = ({ data: currentData, doContinue }) => { const cryptoCurrencies = data?.cryptoCurrencies ?? [] const save = () => { - const defaultCryptoUnit = R.head( - R.keys(coinUtils.getCryptoCurrency(coin).units) - ) const adjustedData = { zeroConfLimit: 0, - ...currentData, - cryptoUnits: defaultCryptoUnit + ...currentData } if (!WalletSchema.isValidSync(adjustedData)) return setError(true)