fix: row stripeWhen prop

This commit is contained in:
Sérgio Salgado 2021-06-28 18:01:14 +01:00 committed by Josh Harvey
parent d714e0c7cb
commit 04c50a2dc5
3 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -96,6 +96,7 @@ const Wallet = ({ name: SCREEN_KEY }) => {
setOnChangeFunction(null)
return it
})
return (
<>
<TitleSection title="Wallet Settings" />

View file

@ -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) => {