Skip to content

Commit

Permalink
get the real available freelance date
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Sep 7, 2024
1 parent 97716c0 commit bfb222e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ const getAvailableForWorkDate = () => {
];
let index = date.getMonth();

if (date.getMonth() < 12) {
index += 1;
}
// Uncomment this if you want to include the next month
// if (date.getMonth() < 12) {
// index += 1;
// }
const month = monthNames[index];

return `${month} '${year}`;
Expand Down

0 comments on commit bfb222e

Please sign in to comment.