Skip to content

Commit 8a9093e

Browse files
committed
#690: Fixed formatting issue
1 parent 8c2be93 commit 8a9093e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/src/pages/WorkPackageForm/WorkPackageFormView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const WorkPackageFormView: React.FC<WorkPackageFormViewProps> = ({
117117
const { userId } = user;
118118

119119
const transformDate = (date: Date) => {
120-
const month = date.getMonth() + 1 < 10 ? `0${date.getMonth()}` : (date.getMonth()).toString();
120+
const month = date.getMonth() + 1 < 10 ? `0${date.getMonth()}` : date.getMonth().toString();
121121
const day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate().toString();
122122
return new Date(date.getFullYear(), Number(month), Number(day));
123123
};

0 commit comments

Comments
 (0)