1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00

Use ternary operator instead of two conditionals.

This commit is contained in:
Dan 2017-09-06 09:40:39 -02:30 committed by Chi Kei Chan
parent 64f8a4d22b
commit 3e6b619bd8

View File

@ -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,