Fix value validator in send custom transaction
This commit is contained in:
parent
8aad19bcf3
commit
1af8ffad4c
|
@ -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">
|
||||
|
|
|
@ -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*"
|
||||
|
|
Loading…
Reference in New Issue