Fix UI error when 'send to address' option disabled

This commit is contained in:
Harvey Tindall 2020-07-09 20:33:14 +01:00
parent 71f05f2348
commit 7bda2f4141
1 changed files with 4 additions and 1 deletions

View File

@ -114,7 +114,10 @@ if (bsVersion == 5) {
});
};
} else if (bsVersion == 4) {
document.getElementById('send_to_address_enabled').classList.remove('form-check-input');
let send_to_address = document.getElementById('send_to_address_enabled');
if (send_to_address) {
send_to_address.classList.remove('form-check-input');
}
function createModal(id, find = false) {
return {
show : function() {