fix(profile): keep error status persistent until valid

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2025-06-01 12:15:58 +02:00 committed by backportbot[bot]
parent 155867aecd
commit 8b81a8ef49

View file

@ -155,6 +155,7 @@ export default {
methods: {
async updateProperty(value) {
try {
this.hasError = false
const responseData = await savePrimaryAccountProperty(
this.name,
value,
@ -182,7 +183,6 @@ export default {
} else {
handleError(error, errorMessage)
this.hasError = true
setTimeout(() => { this.hasError = false }, 2000)
}
},
},