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

Commit 0d5d84a

Browse files
committed
fix when no calendar is connected
1 parent 835ffdd commit 0d5d84a

File tree

1 file changed

+3
-3
lines changed
  • src/routes/PositionDetails/components/InterviewPopup/Confirm

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Confirm = ({
4848
const primaryCalendar = getPrimaryCalendar(userSettings);
4949
const calendarSynced = primaryCalendar ? isCalendarInSync(primaryCalendar) : false;
5050

51-
// to know if calendar is ready and synced to request interview, we check for primary calendar
51+
// to know if calendar is ready and synced to request interview, we check for primary calendar
5252
// & its sync status, combined with either the timeoutid or initiate confirmation flag
5353
if ((primaryCalendar && calendarSynced) && (syncCalendarTimeoutId || initiateInterviewConfirmation))
5454
{
@@ -117,13 +117,13 @@ const Confirm = ({
117117
{
118118
// show loading indicator with message
119119
onSetLoadingMessageLocal(`Syncing your new calendar ${primaryCalendar.email}, it might take a few minutes...`);
120-
120+
121121
// fetch UserMeetingSettings in the background, for the 1st time, no timeout is necessary,
122122
// so we set initiateInterviewConfirmation value to true
123123
getSettingsModular();
124124
setInitiateInterviewConfirmation(true);
125125
}
126-
else if (primaryCalendar && calendarSynced)
126+
else
127127
{
128128
onContinueAhead();
129129
}

0 commit comments

Comments
 (0)