Browse Source

fixing sending comment bug

pull/81/head
Dzenis Hadzifejzovic 3 years ago
parent
commit
90556df6a7
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/store/reducers/candidate/candidateReducer.js

+ 6
- 2
src/store/reducers/candidate/candidateReducer.js View File

@@ -41,12 +41,15 @@ function setError(state, action) {

function setComments(state, action) {
const currentDate = new Date();
console.log("Ovde smo" + currentDate);
var datetime =
currentDate.getFullYear() +
"-" +
(currentDate.getMonth() + 1) +
(currentDate.getMonth() <= 9 ? "0" + (currentDate.getMonth() + 1) : currentDate.getMonth() + 1) +
"-" +
currentDate.getDate() +
(currentDate.getDate() <= 9
? "0" + currentDate.getDate()
: currentDate.getDate()) +
"T" +
currentDate.getHours() +
":" +
@@ -69,6 +72,7 @@ function setComments(state, action) {
comments: [...state.candidate.comments, obj],
},
};

}

function setCommentsError(state, action) {

Loading…
Cancel
Save