Skip to content

Commit

Permalink
Arreglo de notificacion de memo points
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosRosario16 committed Mar 8, 2020
1 parent 7e7bdaf commit 28d3980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions App/Screens/PostComments/PostComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PostComments extends React.Component {
this.setState({ isLoading: false });
const isSuccess = Lodash.get(objResponse, ['data', 'success'], false);
if (isSuccess) {
current.setToastVisible(GAMIFICATION_MSG(1));
current.setToastVisible(GAMIFICATION_MSG(5));
const modifiedCommentObj = { ...commentObj };
modifiedCommentObj.score =
commentObj.currentUserReaction !== 0 ? commentObj.score + 2 : commentObj.score + 1;
Expand Down Expand Up @@ -183,7 +183,7 @@ class PostComments extends React.Component {
this.setState({ isLoading: false });
const isSuccess = Lodash.get(objResponse, ['data', 'success'], false);
if (isSuccess) {
current.setToastVisible(GAMIFICATION_MSG(1));
current.setToastVisible(GAMIFICATION_MSG(5));
const modifiedCommentObj = { ...commentObj };
modifiedCommentObj.score =
commentObj.currentUserReaction !== 0 ? commentObj.score - 2 : commentObj.score - 1;
Expand Down
4 changes: 2 additions & 2 deletions App/Screens/PostInfo/PostInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class PostInfo extends React.Component {
this.setState({ isLoading: false });
const isSuccess = Lodash.get(objResponse, ['data', 'success'], false);
if (isSuccess) {
current.setToastVisible(GAMIFICATION_MSG(10));
current.setToastVisible(GAMIFICATION_MSG(5));
this.setState(prevState => ({
isLoading: false,
score:
Expand Down Expand Up @@ -441,7 +441,7 @@ class PostInfo extends React.Component {
this.setState({ isLoading: false });
const isSuccess = Lodash.get(objResponse, ['data', 'success'], false);
if (isSuccess) {
current.setToastVisible(GAMIFICATION_MSG(10));
current.setToastVisible(GAMIFICATION_MSG(5));
this.setState(prevState => ({
isLoading: false,
score:
Expand Down

0 comments on commit 28d3980

Please sign in to comment.