we are so back

This commit is contained in:
Laker Turner 2025-04-23 14:47:12 +01:00
parent 6972a40092
commit 8ac5e73d4a
No known key found for this signature in database
25 changed files with 292 additions and 128 deletions

View file

@ -11,7 +11,6 @@ export function isBirthday(): boolean {
const check =
today.getMonth() === birthday.getMonth() &&
today.getDate() === birthday.getDate();
console.log(check);
return check;
}

View file

@ -12,7 +12,7 @@ export const descriptionConstructor = (description: string) => {
return `${description}`;
};
export const noteTitleConstructor = (title: string, date: Date) => {
export const noteTitleConstructor = (title: string | undefined, date: Date) => {
if (title) return `A note titled ${title}`;
return `A note from ${date.toLocaleDateString()}`;
};