Skip to content

Commit

Permalink
fix: typing 1
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jun 16, 2024
1 parent ba14934 commit 36c97c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/settings/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const getTimePermission = () => {

const currentTimeIsBiggerThanStart =
currentSettings.startTime &&
currentTime >= currentSettings.startTime.getTime();
currentSettings.startTime ?
currentTime >= currentSettings.startTime.getTime() : false;

const currentTimeIsSmallerThanEnd =
currentSettings.startTime &&
currentTime <= currentSettings.endTime.getTime();
currentSettings.endTime ?
currentTime <= currentSettings.endTime.getTime() : false;

return {
isPermittedByTime:
Expand Down

0 comments on commit 36c97c5

Please sign in to comment.