Skip to content

Conversation

@Varout
Copy link
Owner

@Varout Varout commented May 9, 2025

No description provided.

Choose a reason for hiding this comment

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

Repeated logic could be abstracted to another function:

updateTaskListAndProgress(result) {
  this.taskList = result;
  this.calculateProgress();
  this.taskIdsToUpdate = [];
  this.isSubmitBtnDisabled = false;
}

Comment on lines +115 to +116
console.error("Error updating and fetching data:", error);
this.isSubmitBtnDisabled = false;

Choose a reason for hiding this comment

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

Is there a global error handler and UI alert class these should be passed to?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Not yet

Choose a reason for hiding this comment

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

Maybe also order the functions as You would read them?

Choose a reason for hiding this comment

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

Also also, where is Your test? 🧐

Copy link
Owner Author

Choose a reason for hiding this comment

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

Still gotta learn the skill of Jest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants