mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Use ternary operator instead of two conditionals.
This commit is contained in:
parent
64f8a4d22b
commit
3e6b619bd8
@ -360,7 +360,7 @@ function reduceApp (state, action) {
|
|||||||
return extend(appState, {
|
return extend(appState, {
|
||||||
currentView: {
|
currentView: {
|
||||||
name: 'confTx',
|
name: 'confTx',
|
||||||
context: action.id && indexForPending(state, action.id) || 0,
|
context: action.id ? indexForPending(state, action.id) : 0,
|
||||||
},
|
},
|
||||||
transForward: action.transForward,
|
transForward: action.transForward,
|
||||||
warning: null,
|
warning: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user