aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-footer/send-footer.utils.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-25 08:53:54 +0800
committerDan <danjm.com@gmail.com>2018-05-25 08:53:54 +0800
commitdc2b5d0ef47be2125e58018470539d65d0d64c75 (patch)
treed672bbc0ef62f3c4bb7f100812cac294fe905640 /ui/app/components/send_/send-footer/send-footer.utils.js
parent3a87d9221d7ae1d0d7cb526e5fb22ea528498105 (diff)
downloadtangerine-wallet-browser-dc2b5d0ef47be2125e58018470539d65d0d64c75.tar.gz
tangerine-wallet-browser-dc2b5d0ef47be2125e58018470539d65d0d64c75.tar.zst
tangerine-wallet-browser-dc2b5d0ef47be2125e58018470539d65d0d64c75.zip
Move formShouldBeDisabled from send-footer util to component.
Diffstat (limited to 'ui/app/components/send_/send-footer/send-footer.utils.js')
-rw-r--r--ui/app/components/send_/send-footer/send-footer.utils.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/app/components/send_/send-footer/send-footer.utils.js b/ui/app/components/send_/send-footer/send-footer.utils.js
index 149d9e357..d5639629d 100644
--- a/ui/app/components/send_/send-footer/send-footer.utils.js
+++ b/ui/app/components/send_/send-footer/send-footer.utils.js
@@ -2,11 +2,6 @@ const ethAbi = require('ethereumjs-abi')
const ethUtil = require('ethereumjs-util')
const { TOKEN_TRANSFER_FUNCTION_SIGNATURE } = require('../send.constants')
-function formShouldBeDisabled ({ inError, selectedToken, tokenBalance, gasTotal }) {
- const missingTokenBalance = selectedToken && !tokenBalance
- return inError || !gasTotal || missingTokenBalance
-}
-
function addHexPrefixToObjectValues (obj) {
return Object.keys(obj).reduce((newObj, key) => {
return { ...newObj, [key]: ethUtil.addHexPrefix(obj[key]) }
@@ -81,7 +76,6 @@ function addressIsNew (toAccounts, newAddress) {
module.exports = {
addressIsNew,
- formShouldBeDisabled,
constructTxParams,
constructUpdatedTx,
addHexPrefixToObjectValues,