diff options
author | Dan <danjm.com@gmail.com> | 2017-09-06 20:10:39 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-08 01:25:56 +0800 |
commit | 3e6b619bd8862d27b18f22ff3645fa96a96b185b (patch) | |
tree | 7fd888fff197363530bdceed2520931fbda9a00c /ui/app | |
parent | 64f8a4d22b2f967087e02b5c80e1b7036a38bc61 (diff) | |
download | tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar.gz tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar.bz2 tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar.lz tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar.xz tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.tar.zst tangerine-wallet-browser-3e6b619bd8862d27b18f22ff3645fa96a96b185b.zip |
Use ternary operator instead of two conditionals.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/reducers/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index c55ba179f..d8b9d5e8b 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -360,7 +360,7 @@ function reduceApp (state, action) { return extend(appState, { currentView: { name: 'confTx', - context: action.id && indexForPending(state, action.id) || 0, + context: action.id ? indexForPending(state, action.id) : 0, }, transForward: action.transForward, warning: null, |