1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/components/send_/send-footer/send-footer.selectors.js

13 lines
253 B
JavaScript

const { getSendErrors } = require('../send.selectors')
const selectors = {
isSendFormInError,
}
module.exports = selectors
function isSendFormInError (state) {
const { amount, to } = getSendErrors(state)
return Boolean(amount || to !== null)
}