fix(profile): do not restore previous value on invalid request

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2025-05-29 11:11:58 +02:00 committed by backportbot[bot]
parent ac5b632bf8
commit 155867aecd

View file

@ -180,7 +180,6 @@ export default {
this.isSuccess = true
setTimeout(() => { this.isSuccess = false }, 2000)
} else {
this.$emit('update:value', this.initialValue)
handleError(error, errorMessage)
this.hasError = true
setTimeout(() => { this.hasError = false }, 2000)