Fix value validator in send custom transaction

This commit is contained in:
Germán Martínez 2019-09-10 13:15:04 +02:00
parent 8aad19bcf3
commit 1af8ffad4c
2 changed files with 2 additions and 4 deletions

View File

@ -116,8 +116,8 @@ const ReviewCustomTx = ({
<Row margin="md" align="center">
<Img src={getEthAsToken().logoUri} height={28} alt="Ether" onError={setImageToPlaceholder} />
<Paragraph size="md" noMargin className={classes.value}>
{tx.value}
{'ETH'}
{tx.value || 0}
{' ETH'}
</Paragraph>
</Row>
<Row margin="xs">

View File

@ -20,7 +20,6 @@ import {
composeValidators,
mustBeFloat,
maxValue,
greaterThan,
} from '~/components/forms/validator'
import SafeInfo from '~/routes/safe/components/Balances/SendModal/SafeInfo'
import ArrowDown from '../assets/arrow-down.svg'
@ -126,7 +125,6 @@ const SendCustomTx = ({
type="text"
validate={composeValidators(
mustBeFloat,
greaterThan(0),
maxValue(ethBalance),
)}
placeholder="Value*"