Updated code that shows or hides address error messages based on user input

This commit is contained in:
Leah Schumann 2022-05-17 10:06:53 -04:00
parent 094ce5098b
commit 1bfe78c3bc

View file

@ -271,8 +271,16 @@ export default ({
},
watch: {
addressModel: {
handler(newValue){
//this.displayNoMatchWarning = false;
handler(newValue) {
if (!newValue.city &&
!newValue.state &&
!newValue.zipCode) {
return;
}
if (this.displayNoMatchWarning === true) {
this.displayNoMatchWarning = false;
}
},
deep: true
}