Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fbc0070

Browse files
committedDec 18, 2021
Fixed some lint errors.
1 parent c7bbee2 commit fbc0070

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎src/server/misc/routes/interview-thank-you-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function getInterviewThankYouPageController(req, res) {
3636
);
3737
const object = {
3838
jobTitle: nylasconfig.name,
39-
calendarName: _.get(timeslots, '[0].host_name', ''),
39+
calendarName: _.get(timeslots, "[0].host_name", ""),
4040
tz: query.tz,
4141
week: moment.unix(query.start_time).format("dddd"),
4242
startDate: moment.unix(query.start_time).format("MMMM DD, yyyy"),

‎src/utils/helpers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ export const isCustomRole = (role) =>
8686
* @param {Object} userMeetingSettings UserMeetingSettings instance to check
8787
* @returns {object} the calendar object which is primary
8888
*/
89-
export const getPrimaryCalendar = (userMeetingSettings) => _.find(userMeetingSettings.nylasCalendars, calendar => calendar.isPrimary);
89+
export const getPrimaryCalendar = (userMeetingSettings) =>
90+
_.find(userMeetingSettings.nylasCalendars, (calendar) => calendar.isPrimary);
9091

9192
/**
9293
* Checks if calendar is synced or not
9394
* @param {Object} calendar calendar to check
9495
* @returns {boolean} whether the calendar is in sync or not
9596
*/
9697
export const isCalendarInSync = (calendar) => {
97-
if (calendar)
98-
return calendar && calendar.calendarId;
99-
}
98+
if (calendar) return calendar && calendar.calendarId;
99+
};

0 commit comments

Comments
 (0)
This repository has been archived.