Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored Salary Editing Logic #4698

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Added a utility function to clamp salary values, ensuring they fall within a specified range.

Also increased the maximum salary from 100,000 to 1,000,000,000. This should be more than sufficient for our users.

Closes #4697

Added a utility function to clamp salary values, ensuring they fall within a specified range.
@IllianiCBT IllianiCBT added Bug Personnel Personnel-related Issues labels Aug 24, 2024
@IllianiCBT IllianiCBT self-assigned this Aug 24, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.11%. Comparing base (20ea3a7) to head (9e1de6f).
Report is 49 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4698      +/-   ##
============================================
- Coverage     10.68%   10.11%   -0.57%     
+ Complexity     5709     5703       -6     
============================================
  Files           950      950              
  Lines        131268   131270       +2     
  Branches      19136    19136              
============================================
- Hits          14021    13273     -748     
- Misses       116022   116773     +751     
+ Partials       1225     1224       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sleet01 Sleet01 merged commit a60aaa1 into MegaMek:master Sep 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE when adjusting Salary
3 participants