we are so back
This commit is contained in:
parent
6972a40092
commit
8ac5e73d4a
25 changed files with 292 additions and 128 deletions
|
@ -11,7 +11,6 @@ export function isBirthday(): boolean {
|
|||
const check =
|
||||
today.getMonth() === birthday.getMonth() &&
|
||||
today.getDate() === birthday.getDate();
|
||||
console.log(check);
|
||||
return check;
|
||||
}
|
||||
|
||||
|
|
|
@ -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()}`;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue