From 1af8ffad4c45e7c756435a321c2950fd69cc8901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Mart=C3=ADnez?= Date: Tue, 10 Sep 2019 13:15:04 +0200 Subject: [PATCH] Fix value validator in send custom transaction --- .../Balances/SendModal/screens/ReviewCustomTx/index.jsx | 4 ++-- .../Balances/SendModal/screens/SendCustomTx/index.jsx | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/routes/safe/components/Balances/SendModal/screens/ReviewCustomTx/index.jsx b/src/routes/safe/components/Balances/SendModal/screens/ReviewCustomTx/index.jsx index 2a8c6d80..a78d959f 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/ReviewCustomTx/index.jsx +++ b/src/routes/safe/components/Balances/SendModal/screens/ReviewCustomTx/index.jsx @@ -116,8 +116,8 @@ const ReviewCustomTx = ({ Ether - {tx.value} - {'ETH'} + {tx.value || 0} + {' ETH'} diff --git a/src/routes/safe/components/Balances/SendModal/screens/SendCustomTx/index.jsx b/src/routes/safe/components/Balances/SendModal/screens/SendCustomTx/index.jsx index 9aba3543..d1c9e8d5 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/SendCustomTx/index.jsx +++ b/src/routes/safe/components/Balances/SendModal/screens/SendCustomTx/index.jsx @@ -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*"