filteredProjects() {
const search = this.searchString.toLowerCase();
return this.journal.flatMap(n => Array.isArray(n.savedProjects)
? n.savedProjects.filter(m => m.name.toLowerCase().includes(search))
: []
);
},
rating = 67;
console.log(
(1 / rating).toFixed(2) <= 0.01 ? (1 / rating).toFixed(3) : (1 / rating).toFixed(2),
(1 / rating).toFixed(rating > 66 ? 3 : 2)
);
rating = 66;
console.log(
(1 / rating).toFixed(2) <= 0.01 ? (1 / rating).toFixed(3) : (1 / rating).toFixed(2),
(1 / rating).toFixed(rating > 66 ? 3 : 2)
);