Skip to content

Commit

Permalink
rename an internal variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Apr 25, 2023
1 parent 0555400 commit 48064b1
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -212,12 +212,14 @@ export const fetchRulesSnoozeSettings = async ({
}
);

return response.data?.map((x) => ({
id: x?.id ?? '',
muteAll: x?.mute_all ?? false,
activeSnoozes: x?.active_snoozes ?? [],
isSnoozedUntil: x?.is_snoozed_until ? new Date(x.is_snoozed_until) : undefined,
snoozeSchedule: x?.snooze_schedule,
return response.data?.map((snoozeSettings) => ({
id: snoozeSettings?.id ?? '',
muteAll: snoozeSettings?.mute_all ?? false,
activeSnoozes: snoozeSettings?.active_snoozes ?? [],
isSnoozedUntil: snoozeSettings?.is_snoozed_until
? new Date(snoozeSettings.is_snoozed_until)
: undefined,
snoozeSchedule: snoozeSettings?.snooze_schedule,
}));
};

Expand Down

0 comments on commit 48064b1

Please sign in to comment.