applied reps documents naming conventions

This commit is contained in:
2024-05-14 19:06:20 +01:00
parent 5987ecacf2
commit 0e3df85fdc
13 changed files with 273 additions and 137 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ let AddressSearch = (props) => {
searchString = "?" + searchString.slice(0, -1);
console.log(searchString);
//console.log(searchString);
router.replace(
router.locale == "cy"
+9 -2
View File
@@ -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);