Skip to content

bugfix(GUI): Prevent division by zero in skill points progress bar#430

Open
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/skill-points-progress-bar-div-zero
Open

bugfix(GUI): Prevent division by zero in skill points progress bar#430
seer-by-sentry[bot] wants to merge 1 commit intomainfrom
seer/bugfix/skill-points-progress-bar-div-zero

Conversation

@seer-by-sentry
Copy link
Copy Markdown

Fixes CLIENT-2YP. The issue was that: Skill point level boundaries being equal causes division by zero in progress bar calculation.

  • Introduced a check to prevent division by zero when calculating the progress for the skill points experience bar.
  • Ensures 'skillPointsRequired' is greater than zero before performing the division.
  • Sets progress to 0 if 'skillPointsRequired' is not positive, avoiding runtime errors.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 12532690

Not quite right? Click here to continue debugging with Seer.

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.

0 participants