1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/ui/app/pages/send/send-content/send-gas-row/send-gas-row.selectors.js

20 lines
362 B
JavaScript
Raw Normal View History

2018-04-11 16:21:54 +02:00
const selectors = {
2018-06-29 19:19:40 +02:00
gasFeeIsInError,
getGasLoadingError,
getGasButtonGroupShown,
2018-04-11 16:21:54 +02:00
}
module.exports = selectors
2018-06-29 19:19:40 +02:00
function getGasLoadingError (state) {
return state.send.errors.gasLoading
2018-04-11 16:21:54 +02:00
}
2018-06-29 19:19:40 +02:00
function gasFeeIsInError (state) {
return Boolean(state.send.errors.gasFee)
}
function getGasButtonGroupShown (state) {
return state.send.gasButtonGroupShown
}