Refactored Score.
This commit is contained in:
@@ -189,7 +189,7 @@ function scrapeProfile({ query }) {
|
||||
const birthday = new Date(Date.UTC(0, Number(month) - 1, Number(day)));
|
||||
|
||||
if (profile.age) {
|
||||
birthday.setUTCFullYear(new Date().getFullYear() - profile.age); // indicate birth year is unknown
|
||||
birthday.setUTCFullYear(new Date().getFullYear() - profile.age);
|
||||
} else {
|
||||
birthday.setUTCFullYear(0); // indicate birth year is unknown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user