Commit 0e7d55e8 by littleploy

fix bug

parent 5c353b15
......@@ -285,7 +285,7 @@ class Home extends Component {
);
}else if(breakdown=="hours"){
isExist = data[data_index][i].value.find(element =>
(moment(element[0]).minutes(Math.round(moment(element[0]).minutes() / 5) * 5).valueOf().toString().substring(0, 8)+"00000"===timestamp)
(moment(element[0]).minutes(Math.round(moment(element[0]).minutes() / 60) * 60).valueOf().toString().substring(0, 8)+"00000"===timestamp)
);
}else{
isExist = data[data_index][i].value.find(element =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment