This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
36
36
const [ timezone , setTimezone ] = useState ( moment . tz . guess ( true ) ) ;
37
37
const days = Object . values ( DAYS ) ;
38
38
const daysMapped = Object . keys ( DAYS ) ;
39
- const timeSlots = new Array ( 24 )
39
+ const timeSlots = new Array ( 25 )
40
40
. join ( "," )
41
41
. split ( "," )
42
42
. map ( ( item , index ) => index )
@@ -48,8 +48,8 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
48
48
currentVal < 12
49
49
? `${ ! currentVal ? 12 : currentVal } :00`
50
50
: `${ 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") ,
53
53
} ,
54
54
] ,
55
55
[ ]
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ import { NYLAS_CONNECT_CALENDAR_JWT_SECRET } from "constants/";
7
7
const nylasClientId = process . env . NYLAS_CLIENT_ID ;
8
8
9
9
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
+ ) ;
11
13
} ;
12
14
13
15
export const deleteCalendar = ( userId , calendarId ) => {
You can’t perform that action at this time.
0 commit comments