Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
...state,
isLoading: true,
message: 'Set activityIdToArchive property',
activityIdToEdit: action.activityId,
activityIdToEdit: undefined,
};
}

Expand All @@ -81,6 +81,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
data: activityList,
isLoading: false,
message: 'Activity archived successfully!',
activityIdToEdit: undefined,
};
}

Expand All @@ -89,7 +90,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
data: [],
isLoading: false,
message: 'Something went wrong deleting activity!',
activityIdToEdit: '',
activityIdToEdit: undefined,
};
}

Expand Down Expand Up @@ -127,7 +128,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
...state,
isLoading: true,
message: 'Set activityIdToUnarchive property',
activityIdToEdit: action.payload,
activityIdToEdit: undefined,
};
}

Expand All @@ -140,7 +141,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
data: activityList,
isLoading: false,
message: 'Unarchive activity successfully!',
activityIdToEdit: '',
activityIdToEdit: undefined,
};
}

Expand All @@ -149,7 +150,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
...state,
isLoading: false,
message: 'Something went wrong unarchiving activities!',
activityIdToEdit: '',
activityIdToEdit: undefined,
};
}

Expand Down