Replaced the for loop with the for-of loop in the search-as-you-type JavaScript of the account form.
This commit is contained in:
		@@ -105,8 +105,8 @@ function initializeBaseAccountQuery() {
 | 
			
		||||
        options.forEach(function (option) {
 | 
			
		||||
            const queryValues = JSON.parse(option.dataset.queryValues);
 | 
			
		||||
            let isMatched = false;
 | 
			
		||||
            for (let i = 0; i < queryValues.length; i++) {
 | 
			
		||||
                if (queryValues[i].includes(query.value)) {
 | 
			
		||||
            for (const queryValue of queryValues) {
 | 
			
		||||
                if (queryValue.includes(query.value)) {
 | 
			
		||||
                    isMatched = true;
 | 
			
		||||
                    break;
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user