client/app/bundles/course/leaderboard/store.ts
Function reducer
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(draft: LeaderboardState, action: LeaderboardActionType) => {
switch (action.type) {
case SAVE_LEADERBOARD_POINTS: {
const leaderboardPointsList = action.leaderboardByExpPoints;
saveListToStore(draft.leaderboardPoints, leaderboardPointsList);
- Create a ticketCreate a ticket