Skip to content

Commit 3cd7142

Browse files
talygurynCopilot
andauthored
Update lib/utils/payday.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a01a12b commit 3cd7142

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/payday.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export function countDaysAfterBlock(workspace: WorkspaceDBScheme): number | unde
6262
return;
6363
}
6464

65-
const expectedPayDay = new Date(workspace.blockedDate);
65+
const blockedDay = new Date(workspace.blockedDate);
6666

6767
const now = new Date().getTime();
6868

69-
return Math.floor((now - expectedPayDay.getTime()) / MILLISECONDS_IN_DAY);
69+
return Math.floor((now - blockedDay.getTime()) / MILLISECONDS_IN_DAY);
7070
}

0 commit comments

Comments
 (0)