Skip to content

Commit e68ccbe

Browse files
authored
isInvalidDate -> isValidDate
1 parent ef7b952 commit e68ccbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/geburtstag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ export default class GeburtstagCommand implements ApplicationCommand {
6262

6363
function isValidDate(mmDd: string): boolean {
6464
const isoDate = new Date(`2000-${mmDd}`);
65-
return Number.isNaN(isoDate.getTime());
65+
return !Number.isNaN(isoDate.getTime());
6666
}

0 commit comments

Comments
 (0)