aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns/account-selection-dropdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/dropdowns/account-selection-dropdown.js')
-rw-r--r--ui/app/components/dropdowns/account-selection-dropdown.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/dropdowns/account-selection-dropdown.js b/ui/app/components/dropdowns/account-selection-dropdown.js
index ccb73bde7..7a8502d18 100644
--- a/ui/app/components/dropdowns/account-selection-dropdown.js
+++ b/ui/app/components/dropdowns/account-selection-dropdown.js
@@ -12,6 +12,7 @@ module.exports = AccountSelectionDropdown
// 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?
AccountSelectionDropdown.prototype.render = function () {
const { selected, network, identities, style, dropdownWrapperStyle, menuItemStyles } = this.props
@@ -21,8 +22,8 @@ AccountSelectionDropdown.prototype.render = function () {
selected: selectedAddress,
network,
identities,
- style: !!style ? style : {},
- dropdownWrapperStyle: !!dropdownWrapperStyle ? dropdownWrapperStyle : {},
- menuItemStyles: !!menuItemStyles ? menuItemStyles : {},
+ style: style || {},
+ dropdownWrapperStyle: dropdownWrapperStyle || {},
+ menuItemStyles: menuItemStyles || {},
}, [])
}