applied reps documents naming conventions
This commit is contained in:
@@ -135,7 +135,7 @@ let AddressSearch = (props) => {
|
||||
|
||||
searchString = "?" + searchString.slice(0, -1);
|
||||
|
||||
console.log(searchString);
|
||||
//console.log(searchString);
|
||||
|
||||
router.replace(
|
||||
router.locale == "cy"
|
||||
|
||||
@@ -145,8 +145,15 @@ const TopThree = (props) => {
|
||||
};
|
||||
|
||||
const repRaisedDate = (datePart) => {
|
||||
var dateObj = new Date(parseInt(datePart.split("-")[3]));
|
||||
return dateObj.toLocaleString();
|
||||
var dateObj = new Date(
|
||||
datePart.split("-")[0] +
|
||||
"-" +
|
||||
datePart.split("-")[1] +
|
||||
"-" +
|
||||
datePart.split("-")[2]
|
||||
);
|
||||
|
||||
return dateObj.toLocaleDateString();
|
||||
};
|
||||
|
||||
let topThreeOnlyArr = showTopThreeArr.slice(0, 3);
|
||||
|
||||
Reference in New Issue
Block a user