diff options
author | Dan <danjm.com@gmail.com> | 2017-08-29 22:50:48 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-08-31 19:16:07 +0800 |
commit | e7b3ef0708290a81dad5c469adaa6fab3f1c45b5 (patch) | |
tree | 29f471ff840cf3eb97af77de45eb136a703e7aa6 /ui/app/components/dropdowns/account-selection-dropdown.js | |
parent | 3ea841e27621a8e9972677e46dbd8e3f0c002632 (diff) | |
download | tangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.tar.gz tangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.tar.zst tangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.zip |
Lint fixes
Diffstat (limited to 'ui/app/components/dropdowns/account-selection-dropdown.js')
-rw-r--r-- | ui/app/components/dropdowns/account-selection-dropdown.js | 7 |
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 || {}, }, []) } |