mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* check contact metadata * check for tokens in state * tests * update tests * validation only if sending tokens * container test
20 lines
320 B
JavaScript
20 lines
320 B
JavaScript
const selectors = {
|
|
getToDropdownOpen,
|
|
getTokens,
|
|
sendToIsInError,
|
|
}
|
|
|
|
module.exports = selectors
|
|
|
|
function getToDropdownOpen (state) {
|
|
return state.send.toDropdownOpen
|
|
}
|
|
|
|
function sendToIsInError (state) {
|
|
return Boolean(state.send.errors.to)
|
|
}
|
|
|
|
function getTokens (state) {
|
|
return state.metamask.tokens
|
|
}
|