Skip to content

Commit 5a3d706

Browse files
-run lint.fix;
1 parent e58dca4 commit 5a3d706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/components/datetime/datetime.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,9 @@ export class Datetime implements ComponentInterface {
821821
const { day, month, year } = this.workingParts;
822822
const firstOfMonth = new Date(`${month}/1/${year}`).getDay();
823823
const offset =
824-
firstOfMonth >= this.firstDayOfWeek ? firstOfMonth - (this.firstDayOfWeek) : 7 - (this.firstDayOfWeek - firstOfMonth);
824+
firstOfMonth >= this.firstDayOfWeek
825+
? firstOfMonth - this.firstDayOfWeek
826+
: 7 - (this.firstDayOfWeek - firstOfMonth);
825827

826828
if (day === null) {
827829
return;

0 commit comments

Comments
 (0)