diff --git a/new-lamassu-admin/src/components/editableTable/Row.js b/new-lamassu-admin/src/components/editableTable/Row.js index 7a4c60ee..9b966285 100644 --- a/new-lamassu-admin/src/components/editableTable/Row.js +++ b/new-lamassu-admin/src/components/editableTable/Row.js @@ -219,7 +219,7 @@ const ERow = ({ editing, disabled, lastOfGroup, newRow }) => { const classes = useStyles() - const shouldStripe = stripeWhen && stripeWhen(values) + const shouldStripe = !editing && stripeWhen && stripeWhen(values) const innerElements = shouldStripe ? groupStriped(elements) : elements const [toSHeader] = R.partition(R.has('doubleHeader'))(elements) diff --git a/new-lamassu-admin/src/pages/Wallet/Wallet.js b/new-lamassu-admin/src/pages/Wallet/Wallet.js index 0e18174b..1844dd07 100644 --- a/new-lamassu-admin/src/pages/Wallet/Wallet.js +++ b/new-lamassu-admin/src/pages/Wallet/Wallet.js @@ -96,6 +96,7 @@ const Wallet = ({ name: SCREEN_KEY }) => { setOnChangeFunction(null) return it }) + return ( <> diff --git a/new-lamassu-admin/src/pages/Wallet/helper.js b/new-lamassu-admin/src/pages/Wallet/helper.js index a869d80c..47da3841 100644 --- a/new-lamassu-admin/src/pages/Wallet/helper.js +++ b/new-lamassu-admin/src/pages/Wallet/helper.js @@ -5,6 +5,7 @@ import { NumberInput } from 'src/components/inputs/formik' import Autocomplete from 'src/components/inputs/formik/Autocomplete.js' import { disabledColor } from 'src/styling/variables' import { CURRENCY_MAX } from 'src/utils/constants' +import { transformNumber } from 'src/utils/number' const classes = { editDisabled: { @@ -24,7 +25,7 @@ const WalletSchema = Yup.object().shape({ .required('Zero Conf Limit is a required field') .min(0) .max(CURRENCY_MAX) - .transform(value => (isNaN(value) ? 0 : value)) + .transform(transformNumber) }) const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {