Fix value validator in send custom transaction
This commit is contained in:
parent
8aad19bcf3
commit
1af8ffad4c
|
@ -116,7 +116,7 @@ const ReviewCustomTx = ({
|
||||||
<Row margin="md" align="center">
|
<Row margin="md" align="center">
|
||||||
<Img src={getEthAsToken().logoUri} height={28} alt="Ether" onError={setImageToPlaceholder} />
|
<Img src={getEthAsToken().logoUri} height={28} alt="Ether" onError={setImageToPlaceholder} />
|
||||||
<Paragraph size="md" noMargin className={classes.value}>
|
<Paragraph size="md" noMargin className={classes.value}>
|
||||||
{tx.value}
|
{tx.value || 0}
|
||||||
{' ETH'}
|
{' ETH'}
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -20,7 +20,6 @@ import {
|
||||||
composeValidators,
|
composeValidators,
|
||||||
mustBeFloat,
|
mustBeFloat,
|
||||||
maxValue,
|
maxValue,
|
||||||
greaterThan,
|
|
||||||
} from '~/components/forms/validator'
|
} from '~/components/forms/validator'
|
||||||
import SafeInfo from '~/routes/safe/components/Balances/SendModal/SafeInfo'
|
import SafeInfo from '~/routes/safe/components/Balances/SendModal/SafeInfo'
|
||||||
import ArrowDown from '../assets/arrow-down.svg'
|
import ArrowDown from '../assets/arrow-down.svg'
|
||||||
|
@ -126,7 +125,6 @@ const SendCustomTx = ({
|
||||||
type="text"
|
type="text"
|
||||||
validate={composeValidators(
|
validate={composeValidators(
|
||||||
mustBeFloat,
|
mustBeFloat,
|
||||||
greaterThan(0),
|
|
||||||
maxValue(ethBalance),
|
maxValue(ethBalance),
|
||||||
)}
|
)}
|
||||||
placeholder="Value*"
|
placeholder="Value*"
|
||||||
|
|
Loading…
Reference in New Issue