aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns/account-options-dropdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/dropdowns/account-options-dropdown.js')
-rw-r--r--ui/app/components/dropdowns/account-options-dropdown.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/dropdowns/account-options-dropdown.js b/ui/app/components/dropdowns/account-options-dropdown.js
index 7d7188ec4..50e793d87 100644
--- a/ui/app/components/dropdowns/account-options-dropdown.js
+++ b/ui/app/components/dropdowns/account-options-dropdown.js
@@ -12,6 +12,7 @@ module.exports = AccountOptionsDropdown
// TODO: specify default props and proptypes
// TODO: hook up to state, connect to redux to clean up API
+// TODO: selectedAddress is not defined... should we use selected?
AccountOptionsDropdown.prototype.render = function () {
const { selected, network, identities, style, dropdownWrapperStyle, menuItemStyles } = this.props
@@ -21,8 +22,8 @@ AccountOptionsDropdown.prototype.render = function () {
selected: selectedAddress,
network,
identities,
- style: !!style ? style : {},
- dropdownWrapperStyle: !!dropdownWrapperStyle ? dropdownWrapperStyle : {},
- menuItemStyles: !!menuItemStyles ? menuItemStyles : {},
+ style: style || {},
+ dropdownWrapperStyle: dropdownWrapperStyle || {},
+ menuItemStyles: menuItemStyles || {},
}, [])
}