fixed mail bugs where one couldn't add contact

This commit is contained in:
Kevin Froman 2019-11-21 03:18:16 -06:00
parent 720efe4fca
commit 54a35a452a
2 changed files with 2 additions and 9 deletions

View file

@ -51,14 +51,6 @@ friendPicker.onchange = function(){
}
sendForm.onsubmit = function(){
if (friendPicker.value.trim().length !== 0 && to.value.trim().length !== 0){
if (friendPicker.value !== to.value){
PNotify.error({
text: 'You have selected both a friend and entered a public key manually.'
})
return false
}
}
if (! to.value.includes("-") && to.value.length !== 56 && to.value.length !== 52){
PNotify.error({
text: 'User ID is not valid'