chore: use spread operator in relay reducer for setting mostPopular relays
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 32s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 32s
This commit is contained in:
parent
3ae1a74dcd
commit
c274879adc
@ -26,7 +26,7 @@ const reducer = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
case ActionTypes.SET_MOST_POPULAR_RELAYS:
|
case ActionTypes.SET_MOST_POPULAR_RELAYS:
|
||||||
return { ...state, mostPopular: action.payload }
|
return { ...state, mostPopular: [...action.payload] }
|
||||||
|
|
||||||
case ActionTypes.RESTORE_STATE:
|
case ActionTypes.RESTORE_STATE:
|
||||||
return action.payload.relays
|
return action.payload.relays
|
||||||
|
Loading…
Reference in New Issue
Block a user