mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-24 12:23:39 +02:00
13 lines
248 B
JavaScript
13 lines
248 B
JavaScript
import { getSendErrors } from '../send.selectors'
|
|
|
|
const selectors = {
|
|
isSendFormInError,
|
|
}
|
|
|
|
module.exports = selectors
|
|
|
|
function isSendFormInError (state) {
|
|
const { amount, to } = getSendErrors(state)
|
|
return Boolean(amount || to !== null)
|
|
}
|