aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-21 01:37:12 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-23 03:10:30 +0800
commit14bdc5a78c8529742754d69b8e45693b06b380fe (patch)
tree21d344592c90c2902fae5be9bf1603118c886ffe /ui/app/util.js
parent83cda2b82e082a5a9b2ee35a9b6d55be43b0d788 (diff)
downloadtangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar.gz
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar.bz2
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar.lz
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar.xz
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.tar.zst
tangerine-wallet-browser-14bdc5a78c8529742754d69b8e45693b06b380fe.zip
Client side error handling for from, to and amount fields in send.js
Diffstat (limited to 'ui/app/util.js')
-rw-r--r--ui/app/util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 7aace1b3c..82a5f9f29 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -55,6 +55,7 @@ module.exports = {
getContractAtAddress,
exportAsFile: exportAsFile,
isInvalidChecksumAddress,
+ allNull,
}
function valuesFor (obj) {
@@ -273,3 +274,7 @@ function exportAsFile (filename, data) {
document.body.removeChild(elem)
}
}
+
+function allNull (obj) {
+ return Object.entries(obj).every(([key, value]) => value === null)
+}