Skip to content

Commit

Permalink
fix: range-color-profile-name.js not using the correct profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
Trainermitch committed Dec 7, 2023
1 parent 52a62b0 commit 3ee16cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/modals/popups/range-color-profile-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RangeColorProfileNamePopup {

let passed = true;
RangeColorProfileNamePopup.profileNames.every((profileName) => {
if (text === profileName) {
if (text.toUpperCase() === profileName.toUpperCase()) {
passed = false;
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/pages/settings/speedometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class RangeColorProfiles {
UiToolkitAPI.ShowCustomLayoutPopupParameters(
'',
'file://{resources}/layout/modals/popups/range-color-profile-name.xml',
`profileNames=${this.profileObjectMap.keys()}&prefilledText=${prefilledText}&OKBtnText=${OKBtnText}&callback=${UiToolkitAPI.RegisterJSCallback(
`profileNames=${[...this.profileObjectMap.keys()]}&prefilledText=${prefilledText}&OKBtnText=${OKBtnText}&callback=${UiToolkitAPI.RegisterJSCallback(
callback
)}`
);
Expand Down

0 comments on commit 3ee16cd

Please sign in to comment.