Skip to content

Commit

Permalink
now days can last 0.5 as float numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Aug 21, 2023
1 parent 3f766ee commit 7983720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/component/day.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Day = ({ data, onMoveUp, onMoveDown, onDelete, onEditInstructions }) => {
step="0.5"
style={{ width: "40px" }}
maxLength={2}
onChange={v => actions.days().update(_data.id, { ..._data, duration_in_days: parseInt(v) })}
onChange={v => actions.days().update(_data.id, { ..._data, duration_in_days: parseFloat(v) })}
initialValue={_data.duration_in_days?.toString() || 1}
/>
Days
Expand Down

1 comment on commit 7983720

@vercel
Copy link

@vercel vercel bot commented on 7983720 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.