Skip to content

Commit 5872dd4

Browse files
committed
fix: Fix round hours decimal places
1 parent 4c5e081 commit 5872dd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/issues/CreateTimeEntryModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const CreateTimeEntryModal = ({ issue, time, onClose, onSuccess }: PropTypes) =>
6262
issue_id: issue.id,
6363
spent_on: new Date(),
6464
activity_id: undefined,
65-
hours: time / 1000 / 60 / 60,
65+
hours: Number((time / 1000 / 60 / 60).toFixed(2)),
6666
comments: "",
6767
}}
6868
validationSchema={Yup.object({

0 commit comments

Comments
 (0)