Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 893171b

Browse files
committed
fix time slot values
1 parent 67d7933 commit 893171b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/routes/PositionDetails/components/InterviewPopup/ManageAvailability/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
3636
const [timezone, setTimezone] = useState(moment.tz.guess(true));
3737
const days = Object.values(DAYS);
3838
const daysMapped = Object.keys(DAYS);
39-
const timeSlots = new Array(24)
39+
const timeSlots = new Array(25)
4040
.join(",")
4141
.split(",")
4242
.map((item, index) => index)
@@ -48,8 +48,8 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
4848
currentVal < 12
4949
? `${!currentVal ? 12 : currentVal}:00`
5050
: `${Math.abs((currentVal === 12 ? 0 : currentVal) - 12)}:00`,
51-
time24HourFormat: `${formatAs2Digits(currentVal + 1)}:00`,
52-
suffix: currentVal < 12 ? "AM" : "PM",
51+
time24HourFormat: currentVal === 24 ? '00:00' : `${formatAs2Digits(currentVal)}:00`,
52+
suffix: currentVal < 12 ? "AM" : (currentVal === 24 ? "AM" : "PM"),
5353
},
5454
],
5555
[]

src/services/interviews.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { NYLAS_CONNECT_CALENDAR_JWT_SECRET } from "constants/";
77
const nylasClientId = process.env.NYLAS_CLIENT_ID;
88

99
export const getUserSettings = (userId) => {
10-
return axios.get(`${config.API.V5}/taas-teams/user-meeting-settings/${userId}`);
10+
return axios.get(
11+
`${config.API.V5}/taas-teams/user-meeting-settings/${userId}`
12+
);
1113
};
1214

1315
export const deleteCalendar = (userId, calendarId) => {

0 commit comments

Comments
 (0)