aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/send/send-footer/send-footer.selectors.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/pages/send/send-footer/send-footer.selectors.js')
-rw-r--r--ui/app/pages/send/send-footer/send-footer.selectors.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/pages/send/send-footer/send-footer.selectors.js b/ui/app/pages/send/send-footer/send-footer.selectors.js
new file mode 100644
index 000000000..e20addfdc
--- /dev/null
+++ b/ui/app/pages/send/send-footer/send-footer.selectors.js
@@ -0,0 +1,11 @@
+const { getSendErrors } = require('../send.selectors')
+
+const selectors = {
+ isSendFormInError,
+}
+
+module.exports = selectors
+
+function isSendFormInError (state) {
+ return Object.values(getSendErrors(state)).some(n => n)
+}