Skip to content

Commit

Permalink
habitItem bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hppanpaliya committed Apr 30, 2023
1 parent 9770da5 commit 2018fc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const HabitItem = (props) => {
<TextField value={editedTitle} onChange={(e) => setEditedTitle(e.target.value)} fullWidth size="small" />
) : (
<>
<Tooltip title="Click to mark as completed" placement="top">
<Tooltip title={props.isCompleted ? "Click to mark as incompleted" : "Click to mark as completed"} placement="top">
<Button onClick={handleToggleCompletion} size="small" color="primary">
{props.name}
</Button>
Expand Down

0 comments on commit 2018fc2

Please sign in to comment.