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

This commit is contained in:
daniyal 2024-08-20 12:53:07 +05:00
parent 3ae1a74dcd
commit c274879adc

View File

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