Skip to content

Conversation

daros10
Copy link
Contributor

@daros10 daros10 commented Apr 7, 2020

No description provided.

case ActivityManagementActionTypes.DELETE_ACTIVITY: {
return {
...state,
message: 'Activity removed successfully!',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to set the loading variable to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daros10 you don't need to add "message: 'Activity removed successfully!'," that is only in DELETE_ACTIVITY_SUCCESS

case ActivityManagementActionTypes.DELETE_ACTIVITY: {
return {
...state,
message: 'Activity removed successfully!',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daros10 you don't need to add "message: 'Activity removed successfully!'," that is only in DELETE_ACTIVITY_SUCCESS

return {
data: [],
isLoading: false,
message: 'Something went wrong creating activities!',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the message is wrong "Something went wrong creating activities!" change for deleting

@daros10 daros10 force-pushed the 67-deletee-activities branch from f4dbdc4 to 2d40594 Compare April 7, 2020 20:43
@enriquezrene enriquezrene merged commit 81a853c into master Apr 7, 2020
@enriquezrene enriquezrene deleted the 67-deletee-activities branch April 7, 2020 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants