Skip to content

Duration doesn't persist #5

Open
@KimberleyEvans-Parker

Description

@KimberleyEvans-Parker

Bug Summary:

If you create a task and then acess the duration, it comes up fine, but then when you refresh and try and access the duration, it becomes undefined


Steps To Reproduce

  1. in 'doto-frontend\src\components\pages\Calendar\Calendar.js', in handleTaskStatusUpdated, if add the line 'console.log(taskToUpdate);
  2. Run Doto
  3. Add a new task
  4. complete the task - you should notice the specified duration (in minutes) come up in the console (right click, inspect element to view the console)
  5. refresh the page
  6. this time, when you complete/ uncomplete a previously made task, the console prints out undefined.

Expected behaviour

The duration should be able to be accessed after the page is refreshed.

Observed Behaviour

After the page is refreshed, the duration is now undefined

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Version:
  • Operating System: Windows 10
  • Browser (if any): Firefox

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions