WebHost: Fix special-range value setting to custom
when randomization is toggled off
#1856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this fixing or adding?
Discord Bug Report: https://discord.com/channels/731205301247803413/1113657616397246544
When toggling randomization off on any "Special Range" type option on a player settings page, it would update the "value" of the option to:
custom
, causing a generation issue as its not a valid option.This fixes that issue by preventing an unneeded update to game settings when toggled.
How was this tested?
Ran WebHost and tested value set in localStorage is valid.
Before:
After:
If this makes graphical changes, please attach screenshots.
See above.