Improve JS variable declaration

This commit is contained in:
Narek Zakarian 2022-11-04 12:46:23 +04:00
parent 54596fc108
commit f3a0c0d0ce

View file

@ -183,7 +183,7 @@ document.addEventListener(
}
let checkedLocations = document.querySelectorAll(messagingLocationsSelector + ' :checked');
let selectedLocations = [...checkedLocations].map(option => option.value);
const selectedLocations = [...checkedLocations].map(option => option.value);
const messagingInputSelectors = payLaterMessagingInputSelectorsByLocations(selectedLocations);