Skip to content

Commit

Permalink
fix: 주말 여부 확인시 getDate 대신 getDay
Browse files Browse the repository at this point in the history
  • Loading branch information
not-using committed Nov 7, 2023
1 parent ad659ea commit d3a7e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/shift.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const WEEKS = [1, 2, 3, 4, 5];

export const sendShiftConfirmation = async () => {
const today = new Date().toISOString().slice(0, 10);
const isInWeekdays = WEEKS.includes(new Date().getDate());
const isInWeekdays = WEEKS.includes(new Date().getDay());
const message = confirmMessage(
isInWeekdays ? SHIFT : SHIFT_WEEKEND,
today.slice(5, 10)
Expand Down

0 comments on commit d3a7e3c

Please sign in to comment.