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:
parent
64f8a4d22b
commit
3e6b619bd8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user